Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 1996 10:46:26 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Subject:   Re: sytem's default locale
Message-ID:  <199612230946.KAA02174@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.95.961223044123.1318A-100000@nagual.ru> from "[?KOI8-R?]" at "Dec 23, 96 04:46:23 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612230946.KAA02174>