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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 9 Sep 2011 17:09:04 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin started speaking German today
Message-ID: <20110909150904.GB27289@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <201109082256.46125.bruno@clisp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
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

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. 

Why should libintl use anything else on Cygwin, but not on Linux?

If the user wants the same locale in Cygwin as in the Win32 environment,
the user can just use the `locale -u' or `locale -s' command.  That's
why it has been added.  It is not at all the task of libintl to
override the underlying OS, and in the case of Cygwin, the underlying
OS is Cygwin, not Windows.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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