Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 1997 11:00:40 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        pam@polynet.lviv.ua
Cc:        hackers@freebsd.org
Subject:   Re: Q: Locale - is it possible to change on the fly?
Message-ID:  <199703111800.LAA25667@phaeton.artisoft.com>
In-Reply-To: <199703111221.OAA21499@NetSurfer.lp.lviv.ua> from "Adrian Pavlykevych" at Mar 11, 97 02:25:23 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> I have nonstandard question: is it possible to change locale settings 
> inside proces on the fly?

Yes.  setlocale( ..., new_locale);

> I need to sort some data according to one 
> collation order and some according to other. Will strcoll and other 
> locale-enabled functions be changing their behavior, if I'll be changing
> locale before their invocations ?

Yes.

Be forewarned: locale is a mechansim for localizing software to a
single locale, not for localizing software to multiple locales
simultaneously.

Like Unicode, it is a tool for localization, not multinationalization;
tools for multinationalization don't really exist, per se, since their
application is limited to language researchers and translators.  The
best you can hope for is picking a single round-trip character set
that supports both your languages.  You will never find one of these
for, for example, Chinese and Japanese.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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