Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bo Persson Newsgroups: comp.lang.c++ Subject: Re: How to get standard paths?!? Date: Sun, 18 Aug 2019 20:33:43 +0200 Lines: 38 Message-ID: References: <_ZR5F.12655$hJ3.11614@fx07.am4> <7cb6F.89442$GfB1.45648@fx36.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net T0YrPZpuic6SOAOJGKBJMgFlWEj19wJicdza1mSFKKlM4nvvm9 Cancel-Lock: sha1:f3gRbzRmzwD5FVV3SEOsnEmS+lo= User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 In-Reply-To: <7cb6F.89442$GfB1.45648@fx36.am4> Content-Language: sv Xref: csiph.com comp.lang.c++:67765 On 2019-08-18 at 14:07, Bart wrote: > On 18/08/2019 11:57, Bonita Montero wrote: >>>> Unicode is defined to have a maximum of 21 bit codepoints. >> >>> Yes.  And how to you fit those 21 bits into a 16-bit wchar_t ? >> >> That's not necessary if you use UTF-16. >> > > > Show me how to make use of UTF-16 here, because it doesn't seem to work > on Windows: > >     #include > >     wchar_t c; >     c = 1000000;         // character code 1000000 > >     printf("c = %d 0x%X", c, c); > > Displays: > >     c = 16960 0x4240 > > Not this: > >     c = 1000000 0xF4240 So we can only guess that this character code is not part of the "supported locale" used in your program. Nowhere does the language standard require C++ to support all available OS locales. It could be a very small subset. Bo Persson