On 5/3/20 8:15 PM, Ken Moffat via lfs-dev wrote:
BUT in chroot I can only set the locale to C or POSIX:
Interesting. If I go into chroot on a completed jhalfs build, I get:
root in chroot /# export LC_ALL=en_US.UTF-8 && date
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such
file or directory
Mon May 4 00:48:39 UTC 2020
root:/#export LC_ALL=en_US.UTF-8 && date
Sun 03 May 2020 09:05:12 PM CDT
root in chroot /# export LC_ALL=fr_FR.UTF-8 && date
bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR.UTF-8): No such
file or directory
Mon May 4 00:48:52 UTC 2020
root:/#export LC_ALL=fr_FR.UTF-8 && date
dim. 03 mai 2020 21:05:37 CDT
root in chroot /# export LC_ALL=en_US.utf8 && date
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Mon May 4 00:50:01 UTC 2020
root:/#export LC_ALL=en_US.utf8 && date
Sun 03 May 2020 09:06:37 PM CDT
root in chroot /# export LC_ALL=en_US.iISO-8859-1 && date
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.ISO-8859-1): No
such file or directory
Mon May 4 00:50:46 UTC 2020
export LC_ALL=en_US.iISO-8859-1 && date
bash: warning: setlocale: LC_ALL: cannot change locale
(en_US.iISO-8859-1): No such file or directory
Note the typo.
root:/#export LC_ALL=en_US.ISO-8859-1 && date
Sun 03 May 2020 09:07:24 PM CDT
root in chroot /# export LC_ALL=C && date
Mon May 4 00:51:16 UTC 2020
root:/#export LC_ALL=C && date
Sun May 3 21:08:55 CDT 2020
root in chroot /# export LC_ALL=C.UTF-8 && date
bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file
or directory
Mon May 4 00:51:27 UTC 2020
root:/#export LC_ALL=C.UTF-8 && date
Sun May 3 21:09:37 CDT 2020
root in chroot /# export LC_ALL=POSIX && date
Mon May 4 00:51:37 UTC 2020
root:/#export LC_ALL=POSIX && date
Sun May 3 21:10:01 CDT 2020
Is it because the locales are not available until after glibc and then
leaving/reentering chroot?
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page