Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Mar 3, 2009, 09:47 UTC
- Message-ID
- <37fcd2780903030147q7062ee47w7ce524c28a6aa347@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.00.0903022135360.20047@perkele.intern.softwolves.pp.se>
On Mon, Mar 02, 2009 at 09:41:57PM +0100, Peter Krefting wrote:
> > In most cases, I would most definitely agree with you on calling it that,_ > but when it comes to Unicode support, Windows is one of the least broken__ > OSes (with Symbian being my favourite).
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...
Dmitry