Subject: Re: [boost] [General] Always treat std::strings as UTF-8?
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2011-01-14 11:09:29
On Fri, 14 Jan 2011 17:52:06 +0200, Peter Dimov wrote:
> Alexander Lamaison wrote:
>> Windows can't give you a narrow string in the first place that it can't
>> accept back.
> It can, and it does. You can have a file whose name can't be represented as
> a narrow string in the current code page. If you use an "ANSI" function to
> get its name, you can only receive an approximation of its real name. If you
> use the "wide" function, you get its real name.
Ok, I see what you mean. The way I was looking at it, the string Windows
gave you was wrong, but correctly encoded :P
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk