Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Mar 4, 2009, 10:53 UTC
- Message-ID
- <alpine.DEB.2.00.0903041151440.8926@perkele.intern.softwolves.pp.se>
- In-Reply-To
- <450196A1AAAE4B42A00A8B27A59278E709F076D2@EXCHANGE.trad.tradestation.com>
John Dlugosz:
> Actually, UTF-8 is a valid code page on Windows.
Yes, but I am unsure whether it can be set as a thread locale for the sake of file APIs.
> Also, there is a national code page that =will= represent all file names > on the systems and is supported: That is the Chinese GB18030, code page > 54936.
Yeah, but unfortunately it is explicitly documented that it is only supported in MultiByteToWideChar, WideCharToMultiByte and some text painting APIs in Windows, i.e the stdio functions and others may break horribly.
-- \\// Peter - http://www.softwolves.pp.se/