Opened 17 years ago
Closed 16 years ago
#2172 closed defect (fixed)
grep-2.5.3 skips 1 test because cs_CZ.UTF-8 locale could not be installed
Reported by: | Gabriel Negreira Barbosa | Owned by: | DJ Lucas |
---|---|---|---|
Priority: | normal | Milestone: | 6.4 |
Component: | Book | Version: | 6.3 |
Severity: | trivial | Keywords: | |
Cc: |
Description
Chapter 6.9 (glibc-2.5.1) gives an option to install just a couple of locales in order to achieve a full coverage of glibc tests.
When running grep-2.5.1a testsuite at chapter 6.37 I noticed that the results were not the same as in the test results at LFS site (http://www.linuxfromscratch.org/lfs/build-logs/6.3/Pentium4-3Ghz/chapter06-tests/093-grep), because 1 test didn't run.
This happened because the locale cs_CZ.UTF-8 need to be installed for this test run: fmbtest.sh.
This command solves the problem and I think should be metioned before the "make check" at chapter 6.37: localedef -i cs_CZ -f UTF-8 cs_CZ
I didn't built LFS-SVN, but this locale is not mentioned at glibc chapter and I compiled its grep version (2.5.3) under LFS-6.3 system and the same thing happened: without the locale the test was skipped and with the locale installed the test failed (as written in the chapter).
Change History (8)
follow-up: 2 comment:1 by , 17 years ago
follow-up: 3 comment:2 by , 17 years ago
Replying to alexander@linuxfromscratch.org:
The localedef command above is obviously wrong, should be:
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
The above command works. When you don't have any cs_CZ* locale installed (the case described), two locales will be installed with the above command: cs_CZ and cs_CZ.utf8 (just localedef --list-archive to see the results). I put this command by this way, without ".UTF-8" at the end, to follow the pattern of the book, like the locale fa_IR install mentioned at chapter 6.9: localedef -i fa_IR -f UTF-8 fa_IR.
follow-up: 4 comment:3 by , 17 years ago
Replying to gabriel:
Replying to alexander@linuxfromscratch.org:
The localedef command above is obviously wrong, should be:
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8The above command works. When you don't have any cs_CZ* locale installed (the case described), two locales will be installed with the above command: cs_CZ and cs_CZ.utf8 (just localedef --list-archive to see the results). I put this command by this way, without ".UTF-8" at the end, to follow the pattern of the book, like the locale fa_IR install mentioned at chapter 6.9: localedef -i fa_IR -f UTF-8 fa_IR.
Indeed, the above command doesn't produce error messages. But it is wrong, because the cs_CZ locale must have the ISO-8859-2 charset. Check yourself with the following command:
LC_ALL=cs_CZ locale charmap
fa_IR is a special case because it is not supposed to have a non-UTF-8 counterpart.
comment:4 by , 17 years ago
Replying to alexander@linuxfromscratch.org:
Replying to gabriel:
Replying to alexander@linuxfromscratch.org:
The localedef command above is obviously wrong, should be:
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8The above command works. When you don't have any cs_CZ* locale installed (the case described), two locales will be installed with the above command: cs_CZ and cs_CZ.utf8 (just localedef --list-archive to see the results). I put this command by this way, without ".UTF-8" at the end, to follow the pattern of the book, like the locale fa_IR install mentioned at chapter 6.9: localedef -i fa_IR -f UTF-8 fa_IR.
Indeed, the above command doesn't produce error messages. But it is wrong, because the cs_CZ locale must have the ISO-8859-2 charset. Check yourself with the following command:
LC_ALL=cs_CZ locale charmapfa_IR is a special case because it is not supposed to have a non-UTF-8 counterpart.
The "LC_ALL=cs_CZ locale charmap" command just takes de "default" cs_CZ charmap installed, and in my case it showed UTF-8, because I installed cs_CZ locale by that way.
I installed all locations of glibc with the command "make localedata/install-locales" and I did that "locale" command to see the glibc default, and cs_CZ really have to be ISO-8859-2. So, you are right and I agree with you. The command need to be:
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
comment:5 by , 17 years ago
Another correction: If the locales installed by glibc at chapter 6 are there for the coverage of the other packages tests (because glibc was tested yet at that moment), I think it would be better to put this localedef command together with the other localedef commands at chapter 6.9.
comment:8 by , 16 years ago
Milestone: | 7.0 → 6.4 |
---|
comment:9 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
The localedef command above is obviously wrong, should be: