From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11649 invoked by alias); 9 Sep 2011 15:09:48 -0000 Received: (qmail 11574 invoked by uid 22791); 9 Sep 2011 15:09:28 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 09 Sep 2011 15:09:07 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6E2D82CB465; Fri, 9 Sep 2011 17:09:04 +0200 (CEST) Date: Fri, 09 Sep 2011 15:09:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygwin started speaking German today Message-ID: <20110909150904.GB27289@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <7856072A9D04C24B82DFE2B1112FE38A0C27492B56@MCHP058A.global-ad.net> <201109081246.23238.bruno@clisp.org> <20110908135039.GD6163@calimero.vinschen.de> <201109082256.46125.bruno@clisp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201109082256.46125.bruno@clisp.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00100.txt.bz2 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