Thread (12 messages) flat view 12 messages, 5 authors, 2016-06-15

Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.

From: Peter Krefting <hidden>
Date: 2016-06-15 22:46:19

Dmitry Potapov:
The C Standard requires that the type wchar_t is capable of representing 
any character in the current locale. If Windows uses UTF-16 as internal 
encoding (so, it can work with symbols outside of the BMP), it means you 
cannot have 16-bit wchar_t and be compliant with the C standard...
No, that's not quite correct. wchar_t is defined to be "an integer type whose 
range of values can represent distinct codes for all members of 
the largest extended character set specified among the supported locales". 
Since Windows defines all local character sets as Unicode-based, having 
wchar_t defined as Unicode means that it can represent everything.

-- 
\\// Peter - http://www.softwolves.pp.se/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help