From: Peter Krefting Date: Wed, 04 Mar 2009 10:51:15 GMT Subject: Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded. Message-ID: In-Reply-To: <37fcd2780903030913q4ee0e5d0t45dc3b124285f748@mail.gmail.com> Dmitry Potapov: > No, it does not, if you have wchar_t that is only 16-bit wide, because > characters outside of the BMP have integer values in Unicode greater than > 65535... UTF-16 allows you to reference all of Unicode (i.e up to U+10FFFF) using surrogate pairs. That means that not all characters can be represented as a single wchar_t, that is true. The problem with changing wchar_t is that it was defined to use 16-bit values at a time where Unicode was defined to use 16-bit code points (but they soon figured out that was not enough). Anyway, this is getting off-topic. Please feel free reply in private. -- \\// Peter - http://www.softwolves.pp.se/