From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15509 invoked by alias); 17 Oct 2011 13:58:46 -0000 Received: (qmail 15466 invoked by uid 22791); 17 Oct 2011 13:58:26 -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; Mon, 17 Oct 2011 13:58:03 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id CA4CB2CBDA0; Mon, 17 Oct 2011 15:58:00 +0200 (CEST) Date: Mon, 17 Oct 2011 13:58:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygwin started speaking German today Message-ID: <20111017135800.GD908@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4E8C7FFB.6060707@xs4all.nl> <20111005162714.GA14661@calimero.vinschen.de> <4E8C948D.4070707@cwilson.fastmail.fm> <4E8CA0AF.50805@cornell.edu> <20111010172328.GF30156@calimero.vinschen.de> <4E9474CA.7080408@cwilson.fastmail.fm> <4E9B2585.1000409@cwilson.fastmail.fm> <20111017065904.GB30527@calimero.vinschen.de> <4E9C2AB0.50107@cwilson.fastmail.fm> <20111017135152.GB908@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111017135152.GB908@calimero.vinschen.de> 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-10/txt/msg00321.txt.bz2 On Oct 17 15:51, Corinna Vinschen wrote: > On Oct 17 09:16, Charles Wilson wrote: > The problem is that Bruno tries to impose Windows over Cygwin. That's > not what Cygwin is about. Why can't he accept that? > > > [*] Bruno's "option a" > > > a) The system can set environment variables that reflect the regional > > > settings. For example, if the user has chosen German, Cygwin's > > > login process could set LANG to de_DE.UTF-8. > > > > > > This approach is used in Linux desktops like KDE. > > > > [**] Bruno's "option b" > > > b) The system's setlocale() function can, when the second argument is > > > the empty string and the respective environment variables don't > > > specify anything, fetch the value from the "Regional settings" > > > panel. > > > > > > Cygwin could do that. > > That's what /etc/profile.d/lang.sh and lang.csh is about. Oh, and, btw., even *if* that would be treated as a bug in Cygwin, it's not a library's task to second guess over the head of the underlying POSIX system, as cgf has pointed out already a while ago. Consider libintl would do the same on Linux: The user has set $LANG to "C.UTF-8" and libintl would look into /etc/sysconfig/i18n and override the user's decision. Well, Linux applications usually use glibc localization functions, so that won't happen, but I don't think Bruno would have many friends in the Linux community... 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