[cfe-dev] Wide strings and clang::StringLiteral.

Sebastian Redl sebastian.redl at getdesigned.at
Fri Dec 5 09:23:45 PST 2008


Chris Lattner wrote:
> On Dec 5, 2008, at 4:41 AM, Neil Booth wrote:
>   
>> The standard also requires input to be in the current locale; is
>> there any need to be more relaxed?
>>     
>
> No.
>
>   
Yes. There is no locale under Windows that uses UTF-8 as its encoding, 
and there never will be. (As Raymond Chen mentions from time to time, 
the narrow version of the WinAPI cannot, in general, handle UTF-8.) 
Since we also don't accept encodings that aren't a superset of ASCII, 
UTF-16 or UTF-32 can't be used either. This leaves Windows users without 
the option of using Unicode encodings.

Sebastian



More information about the cfe-dev mailing list