From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13256 invoked by alias); 3 Dec 2009 07:37:54 -0000 Received: (qmail 13246 invoked by uid 22791); 3 Dec 2009 07:37:53 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SARE_SUB_ENC_UTF8,SPF_PASS X-Spam-Check-By: sourceware.org Received: from out1.smtp.messagingengine.com (HELO out1.smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Dec 2009 07:37:46 +0000 Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id CD5BFC544A for ; Thu, 3 Dec 2009 02:37:44 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 03 Dec 2009 02:37:44 -0500 Received: from [192.168.1.3] (user-0c6sbc4.cable.mindspring.com [24.110.45.132]) by mail.messagingengine.com (Postfix) with ESMTPSA id 7539B2B1F2; Thu, 3 Dec 2009 02:37:44 -0500 (EST) Message-ID: <4B176AC7.4030405@cwilson.fastmail.fm> Date: Thu, 03 Dec 2009 07:37:00 -0000 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: X11R7.5 and C.UTF-8 References: <4AE8539E.9080004@cornell.edu> <20091028172216.P60895@mail101.his.com> <4AE8BC12.1060109@cornell.edu> <416096c60910281507n4774534dode1d24ac47d5b0a2@mail.gmail.com> <4B1115EC.7010308@cornell.edu> <4B174C20.1040900@tlinx.org> In-Reply-To: <4B174C20.1040900@tlinx.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2009-12/txt/msg00013.txt.bz2 Linda Walsh wrote: > C.UTF_8 doesn't exist. You're wrong. Please read the whole of this thread -- and the last two months' worth of cygwin-developers. > mintty is broken. No, it isn't. It just doesn't work the way *you* expect it to. > Might want to try 'Console' nstead of using mintty. Not perfect either, > but fewer compatibility problems that I've noticed. > > Examples of valid LANG values: > C, ca_FR, en_US, fr_FR, it_IT, nl_NL, wa_BE@euro > > You can't have "C" and "UTF-8", because C means no encoding (default). No, it doesn't. "C" means "POSIX" and is defined here: http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html Note how all the glyphs are defined in terms of character NAMES, not hexadecimal values? That's because "C", all by itself, just doesn't SPECIFY any encoding. You're still allowed to HAVE one -- in fact, you ALWAYS have one. On most systems, that has historically been the plain ASCII 7-bit encoding; many others used the EBCDIC encoding and were not considered in violation of the POSIX "C" locale specification. Now, many systems are starting to use the UTF-8 encoding by default, even in the "C" locale. "C"/"POSIX" locale (without an additional .ENCODING suffix) is encoding-AGNOSTIC, that's all. So, you're allowed to add an .ENCODING suffix to force a specific encoding if you like, without violating POSIX. (And your system is also allowed, in that case, to IGNORE that .ENCODING suffix, and still be Posix-compliant IIUC, so it's rather a hole in the spec IMO). > UTF-8 IS an encoding, so they are mutually exclusive. I don't > know under what circumstances "C" might imply UTF-8. Whenever the platform decides to use UTF-8 as its default encoding, which is perfectly acceptable according to Posix. Cygwin-1.7 has decided to do that. So, on cygwin-1.7, "C" implies .UTF-8. X11R7.5 doesn't yet know that, without outside help (e.g. explicitly setting $LANG to "C.UTF-8" by default, so that XWin "knows" about the new default behavior). > If the definition > of "C" changes? It might be easier than changing "c" (as used in physics). > > My understanding of locale issues is also limited and subject to change or > re-education... Uhm, yeah. -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/