From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13265 invoked by alias); 8 Sep 2011 13:13:41 -0000 Received: (qmail 13254 invoked by uid 22791); 8 Sep 2011 13:13:40 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Sep 2011 13:13:26 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p88DDQir016324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Sep 2011 09:13:26 -0400 Received: from [10.3.113.13] ([10.3.113.13]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p88DDPJS028637 for ; Thu, 8 Sep 2011 09:13:25 -0400 Message-ID: <4E68BF74.7070407@redhat.com> Date: Thu, 08 Sep 2011 13:13:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110817 Fedora/3.1.12-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: cygwin started speaking German today References: <7856072A9D04C24B82DFE2B1112FE38A0C27492B56@MCHP058A.global-ad.net> <4E6828B0.4060807@cwilson.fastmail.fm> <201109081246.23238.bruno@clisp.org> <4E68AF35.9030002@cwilson.fastmail.fm> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-09/txt/msg00061.txt.bz2 On 09/08/2011 01:47 PM, Andy Koppe wrote: > On 8 September 2011 13:04, Charles Wilson wrote: >> On 9/8/2011 6:46 AM, Bruno Haible wrote: >>> There is nothing to "fix". Users who don't want internationalization system-wide >>> can set their locale in the "Regional Settings" control panel to English. >>> Users who want to have a German Windows but a non-internationalized Cygwin can >>> set LANG=C or LC_ALL=C - exactly like POSIX specifies. >> >> But setting LANG=C.UTF-8 (and not setting any of the LC_* vars at all) >> should have the same behavior as setting LC_ALL=C.UTF-8. >> >> It does not -- and THAT's the bug. > > I agree. > > Further to that, however, Cygwin developers decided that the system > default locale in case neither the relevant LC_* nor LANG are set > should also be "C.UTF-8". That's what setlocale(LC_BLA, "") returns in > that case. It's rather dubious behaviour of libintl to override that. I'd argue that if none of LC_* or LANG are set, then setlocale(LC_BLA,"") should indeed return the system default, rather than being hard-coded to C. POSIX intentionally left behavior as implementation-defined on which locale is returned when none of the environment variables set a locale, precisely so that systems could implement a sane default according to user preferences expressed in some other manner. > > Cygwin isn't Windows; it's a POSIX environment on top of Windows. > Taking the Regional Settings control panel into account might well > make sense, but it ought to be left to the Cygwin developers to decide > on this and implement it centrally. I also agree with this sentiment - if setlocale(LC_BLA, "") is not returning sane results (that is, if there is a system default, but cygwin is not honoring those defaults), then the bug should be fixed in cygwin, not libintl. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple