[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_tes
From: |
Thomas Schmitt |
Subject: |
Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test |
Date: |
Fri, 27 Aug 2021 21:13:17 +0200 |
Hi,
it turns out that it might be contraproductive to set LANG=en_US.UTF-8.
If the LANG locale is not listed by
locale -a
then nl_langinfo(3) returns "ANSI_X3.4-1968".
I stumbled over this when testing LANG=de_DE.UTF8, which despite of
my location is not an available locale on my machine.
So i think that setting any locale by LANG makes daring assumptions
about its availability, unless brain is added to inspect the installed
locals and to choose one that is based on UTF-8.
This reaches quite far beyond the problem which the patch shall solve.
What route to go ?
- Choose the first UTF-8 locale offered by locale -a ?
(What to do if none is offered ?)
- Abandon the idea of setting LANG and rather use xorrisofs charset
options to enforce UTF-8 as origin of the conversion ?
I will for now strive for the second alternative but am ready to change
to number one.
Have a nice day :)
Thomas
- [PATCH v2 2/8] tests: Fix partmap_test for arm*-efi, disk numbering has changed, (continued)
- [PATCH v2 2/8] tests: Fix partmap_test for arm*-efi, disk numbering has changed, Glenn Washburn, 2021/08/25
- [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/25
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Thomas Schmitt, 2021/08/25
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/25
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Thomas Schmitt, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Thomas Schmitt, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Thomas Schmitt, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/26
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test,
Thomas Schmitt <=
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Glenn Washburn, 2021/08/27
- Re: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test, Thomas Schmitt, 2021/08/27
[PATCH v2 4/8] tests: Fail immediately when grub-shell fails and do not occlude the error code, Glenn Washburn, 2021/08/25
[PATCH v2 8/8] tests: Use @BUILD_SHEBANG@ autoconf var instead of literal shell, Glenn Washburn, 2021/08/25
[PATCH v2 3/8] tests: When checking squashfs fstime, use superblock last modified time, Glenn Washburn, 2021/08/25
[PATCH v2 5/8] tests: Make setup errors in grub-fs-tester hard errors, Glenn Washburn, 2021/08/25
[PATCH v2 6/8] tests: A failure of mktemp should cause the test script to exit with code 99, Glenn Washburn, 2021/08/25
[PATCH v2 7/8] tests: Exit with skipped exit code when test not performed, Glenn Washburn, 2021/08/25