Luca wrote:
Alexander, I have a question: (the native stages began in stage2 through
stage9), glibc (or the option given by HLFS uclib, or eventually another
option dietlibc, needed because some packages needed to create the iso,
example embutils, get linked against) takes care of the locale setting
(which we actually export in chapter 7 of lfs book and chapter 3 of blfs
book); how much is it safe to create the /etc/profile and
/etc/profile.d/i18n.sh with language settings after installing glibc in
the first stage of native system? Is it better to wait until all stages
get compiled?
It is completely safe, because of LC_ALL=C in the environment. This cancels all settings from /etc/profile.d/i18n.sh (if it happens to be read).

Note: locale support in uclibc-based HLFS was completely broken as of a year ago, and I didn't retest since then (did anything change?). The testcase:

echo A | iconv -f UTF-8 -t XXX


where XXX can be ISO-8859-{4,5,6,7,8,9} or KOI8-R. The correct result is "A". The wrong result is "?A". More details: http://linuxfromscratch.org/pipermail/hlfs-dev/2006-February/002775.html. This does break unpacking POSIX tar archives even in non-UTF-8 locales.

There are other problems with iconv in uclibc, all of them can be "resolved" by installing libiconv and adding it to the gcc specs - but that's a sledgehammer "solution".

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to