On Fri, Oct 31, 1997 at 05:31:46PM +0100, Orn E. Hansen wrote: > > Þann 31-Oct-97 skrifar [EMAIL PROTECTED]: > > > >> Try setting LC_CTYPE to es_ES too. It worked for me with de_DE. > >> > >> Torsten > > > > Or just LC_ALL="es_ES" (as I do it with de_DE). This sets all the LC_* > > variables. > > > > What LC_ALL variable will do, is *force* all variables to that setting, > this however is *not* always the desired result. Let me give you an > example... if you're on a modern advanced workstation (Not Linux, but one > that has locales fully functional), then... > > LC_ALL = "is_IS" > > Will cause the result of 'date' command to be... > > Lau, 1 Nóv 1997. 17:24:00 GMT > > Which *legedly* causes some scripts to malfunction, because they expect > a "C" style date. The date is controlled by the LC_TIME variable, but > changing this one, won't matter, as the LC_ALL variable has precedence. So, > you either have to have ALL variables the locale, or ALL to the "C" style. > > But, by undefining the LC_ALL variable and using the LANG variable > instead. You can then select which category is what. You can thus set > your LANG to... > > LANG = "is_IS" > LC_TIME = "C" > > And then the fields LC_NUMERIC, LC_MESSAGES, LC_COLLATE, LC_CTYPE and > LC_MONETARY will function as the locale specifies. But the result of > the 'date' command... > > Sat Nov 1 1997. 17:24:00 GMT > > ...the "C" locale as specified by the LC_TIME variable. Thus, you have > a better control over you locale's settings.
Yes, but LC_ALL is for the lazy ones, like me :) You are right in all points, although I don't know the meaning of "legedly" (my dictionary does not know it, too). I would consider a script that depends on the setting of a locale as buggy, So I would encourage LC_ALL for people that want to do testing. If a script really does need "C" locale, it should be wise enough to set it temporarly. Thank you, Marcus -- "Rhubarb is no Egyptian god." Marcus Brinkmann [EMAIL PROTECTED] http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .