Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: "Unicode" Date: Mon, 05 Sep 2016 15:35:54 -0700 Organization: None to speak of Lines: 18 Message-ID: References: <57ca82af.1170031@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="22525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g9hUjg/ltOk3Q3cibSQFy" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:WLhIrilz+FCwpuCIJy510n4mKDM= sha1:HJbIqvAi5Pk9yYAwgqm2w13r4yI= Xref: csiph.com comp.lang.c++:44883 comp.lang.c:93236 "Alf P. Steinbach" writes: [...] > Most (all?) g++ distros for Windows default to UTF-8 as the C++ > execution character set. So ideally one could just use the narrow string > directly for g++, i.e., a little compiler dependency, that's not a large > cost. Unfortunately in Windows the default g++ standard library > implementations expect Windows ANSI, i.e. incompatible with the > compiler's C++ execution character set, and there's no way to change the > locale to an UTF-8 one. "ANSI" is an incorrect name for the Windows-1252 8-bit character set (and related code pages). Even Microsoft no longer calls it that. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"