delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/09/11:58:31

X-Recipient: archive-cygwin AT delorie DOT com
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
MIME-Version: 1.0
In-Reply-To: <20110909150904.GB27289@calimero.vinschen.de>
References: <7856072A9D04C24B82DFE2B1112FE38A0C27492B56 AT MCHP058A DOT global-ad DOT net> <201109081246 DOT 23238 DOT bruno AT clisp DOT org> <20110908135039 DOT GD6163 AT calimero DOT vinschen DOT de> <201109082256 DOT 46125 DOT bruno AT clisp DOT org> <20110909150904 DOT GB27289 AT calimero DOT vinschen DOT de>
Date: Fri, 9 Sep 2011 16:57:58 +0100
Message-ID: <CAHWeT-bY5i6PH-x_7VaHC5sj8Fx1EmJ3CAJ32E4w6xVKSy-7oA@mail.gmail.com>
Subject: Re: cygwin started speaking German today
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p89FwNfi008933

On 9 September 2011 16:09, Corinna Vinschen wrote:
> Hi Bruno,
>
> On Sep  8 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.  Only call POSIX functions.  Don't mix the Cygwin and the
>> > Windows environment.  Please leave the interfacing to the underlying 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
>>    not 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019