|
Boost : |
Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-01-19 11:52:19
Alexander Lamaison wrote:
[about fopen]
> Are you saying this is how it should be or this is how it is? Because, on
> Windows, 'name' certainly can't be UTF-8! The implementation takes 'name'
> to be in the default local codepage, uses mbstowchar to up-convert it to a
> UCS2 wchar_t string and delegates it to _wfopen (or similar - I'm doing
> this from memory).
For what it's worth, it doesn't, it calls CreateFileA. This may or may not
produce the same result as what you describe, depending on whether the
current C locale matches the ANSI code page.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk