X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 17 Oct 2011 15:58:00 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cygwin started speaking German today Message-ID: <20111017135800.GD908@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4E8C7FFB DOT 6060707 AT xs4all DOT nl> <20111005162714 DOT GA14661 AT calimero DOT vinschen DOT de> <4E8C948D DOT 4070707 AT cwilson DOT fastmail DOT fm> <4E8CA0AF DOT 50805 AT cornell DOT edu> <20111010172328 DOT GF30156 AT calimero DOT vinschen DOT de> <4E9474CA DOT 7080408 AT cwilson DOT fastmail DOT fm> <4E9B2585 DOT 1000409 AT cwilson DOT fastmail DOT fm> <20111017065904 DOT GB30527 AT calimero DOT vinschen DOT de> <4E9C2AB0 DOT 50107 AT cwilson DOT fastmail DOT fm> <20111017135152 DOT GB908 AT calimero DOT vinschen DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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