Bryan Kadzban schrieb: > See the bash sources: locale.c, around line 230 (at least in bash 4.0, > which is the only version I have sources handy for). Functions > set_locale_var (which warns when setlocale() returns failure) and > set_lang (which has no such warning, but calls reset_locale_vars if > LC_ALL is unset, which calls setlocale but also does not warn). > > The former is called when one of the LC_* or TEXTDOMAIN or TEXTDOMAINDIR > variables changes. The latter is called when LANG changes.
thanks for your very detailed analysis... > This seems to be *purely* an error checking difference. If de_CH.UTF8 > is not a valid locale string (...and I'm not sure it is valid: that > should be de_CH.UTF-8 I believe, although aliases may exist), then it > still isn't working when you set LANG to that value. It's just that > bash isn't telling you this. ...and your confirmation for my 'guessing'. btw: there is no difference between UTF8 and UTF-8 in the resulting files, but UTF-8 seems to be more common than UTF8. > (Alternately, your locale definitions weren't installed in chapter 5, > and bash is telling you this when you use LC_ALL.) yep. when installing in chapter 5 i don't get any warnings. >> thus the easiest is to put "LANG=de_CH.UTF8" into the profile. > > As, indeed, we tell users to do in section 7.8. :-) as i want to introduce lfs to our local linux user group where not all are understanding the english messages, i will use LANG from the very beginning and install the de_CH.UTF-8 in chapter 5. to build the servers for my clients i will probably stick to the book and set LANG as mentionned in 7.8. my next builds will test the LINGUAS variable, as i would like to have a system with well defined languages on board - i don't need chinese or russian helpfiles or translations... i know i just can delete the unneeded directories at the very end, but try to build just what is needed. thanks for your help tobias -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
