[ros-dev] Broken RtlMultiByteToUnicodeSize

Michele Cicciotti [Khamsa S.A.] mc at khamsa.ch
Mon Jul 24 16:00:29 CEST 2006


Myria wrote:
> I personally think ReactOS should support UTF-8 as a default code page, but I doubt that others agree.  This function is one of the many that would have to change...
>   
I should warn you: setting UTF-8 as the default codepage instantly 
breaks all multibyte-aware code. How so you might wonder? UTF-8 is 
"multibyte", only not "Windows multibyte": it doesn't have lead 
bytes/trail bytes. Any code that parses multibyte strings needs a 
special case for UTF-8 (try it yourself. Set a console's codepage to 
UTF-8 and try to run a batch file). You can do it for code you write, 
but for code that has already been written...


More information about the Ros-dev mailing list