From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28739 invoked by alias); 9 Sep 2011 15:58:16 -0000 Received: (qmail 28724 invoked by uid 22791); 9 Sep 2011 15:58:13 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f43.google.com (HELO mail-yw0-f43.google.com) (209.85.213.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Sep 2011 15:57:59 +0000 Received: by ywm21 with SMTP id 21so319961ywm.2 for ; Fri, 09 Sep 2011 08:57:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.30.106 with SMTP id r10mr2995550pbh.506.1315583878145; Fri, 09 Sep 2011 08:57:58 -0700 (PDT) Received: by 10.68.64.70 with HTTP; Fri, 9 Sep 2011 08:57:58 -0700 (PDT) In-Reply-To: <20110909150904.GB27289@calimero.vinschen.de> References: <7856072A9D04C24B82DFE2B1112FE38A0C27492B56@MCHP058A.global-ad.net> <201109081246.23238.bruno@clisp.org> <20110908135039.GD6163@calimero.vinschen.de> <201109082256.46125.bruno@clisp.org> <20110909150904.GB27289@calimero.vinschen.de> Date: Fri, 09 Sep 2011 15:58:00 -0000 Message-ID: Subject: Re: cygwin started speaking German today From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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/msg00104.txt.bz2 On 9 September 2011 16:09, Corinna Vinschen wrote: > Hi Bruno, > > On Sep =C2=A08 22:56, Bruno Haible wrote: >> > Do NOT call Windows functions in Cygwin libraries, unless >> > the lib is doing something very special which isn't provided by POSIX >> > functions. =C2=A0Only call POSIX functions. =C2=A0Don't mix the Cygwin= and the >> > Windows environment. =C2=A0Please leave the interfacing to the underly= ing OS >> > the sole job of Cygwin. >> >> OK, then the following four facilities are needed in Cygwin. >> >> 1) We need the name of the locale which is in effect when the user has >> =C2=A0 =C2=A0not specified environment variables. > > In Fedora, for instance, the fallback is what is set as system default > in /etc/sysconfig/i18n. > > In Cygwin the fallback is the system default set in /etc/profile.d/lang.sh > or /etc/profile.d/lang.csh. Those set LANG. There's also the hardcoded fallback to "C.UTF-8" in setlocale() in case none of LC_ALL, LC_FOO, and LANG is set. This is Cygwin's system default locale as per POSIX Base defs section 7.2 ("All implementations shall define a locale as the default locale, to be invoked when no environment variables are set, or set to the empty string. This default locale can be the POSIX locale or any other implementation-defined locale.") Andy -- 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