From owner-freebsd-current Mon Dec 23 01:53:48 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA26536 for current-outgoing; Mon, 23 Dec 1996 01:53:48 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id BAA26529 for ; Mon, 23 Dec 1996 01:53:42 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA19700 for ; Mon, 23 Dec 1996 10:50:57 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA10406 for freebsd-current@FreeBSD.org; Mon, 23 Dec 1996 10:50:57 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id KAA02174 for freebsd-current@FreeBSD.org; Mon, 23 Dec 1996 10:46:26 +0100 (MET) From: J Wunsch Message-Id: <199612230946.KAA02174@uriah.heep.sax.de> Subject: Re: sytem's default locale To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Mon, 23 Dec 1996 10:46:26 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "[?KOI8-R?]" at "Dec 23, 96 04:46:23 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Andrey wrote: > > While i basically agree: Why that? Suppose we had a bunch of language > > catalogs (like AIX), and our daemons would understand where to use > > setlocale() and where not (unlike AIX :). There's IMHO no reason why > > a particular system administrator should not express his wish to see > > the syslog messages in his language -- after all, he is supposed to > > read them. > > I not disagree in general, I mean _existen_ daemons. > Do you try to login to "internationalized" ftpd f.e.? It is lot > of fun when its locale have nothing common with your environment. That's why i mentioned AIX above: they apparently dumped a setlocale(LC_ALL, "") into each and any program back in AIX 3.x.x, causing the effect you're describing. You could indeed get German SMTP error mails from their sendmail... Even worse, some version of AIX is said that double pi = 3.1415926; caused a syntax error if your $LANG was set to German, since the compiler stupidly expected it to look like: double pi = 3,1415926; then. :-) Our programs do not suffer from this problem since you've been careful enough to not make the same mistake. All the daemons would start up in the C locale even if there were already a system's default locale, since they don't call setlocale() yet. If they ever start doing this, they must be careful where this is appropriate and where not. > While syslog messages can be... (or not?) > F.e. you can't send your i18n'ed syslog messages to international > discussion forum, if something is wrong happens with your daemon. But that's the administrator's will then. Nobody tells him that he _must_ set a system's default locale, but it would probably be nice if he _can_ do it. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)