bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-22 Thread mhw
Phillip Susi writes: > On 8/13/2014 7:53 AM, Ludovic Courtès wrote: >> Hello, >> >> t0251-gpt-unicode.sh requires the C.UTF-8 locale and fails if it >> isn’t available. >> >> What about: >> >> 1. Exiting with 77 when the locale is unavailable? >> >> 2. Choosing another locale, such as en_US.u

bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-19 Thread Ludovic Courtès
Phillip Susi skribis: > How can the C locale possibly not exist on a system that is not > totally broken? It is the default and fallback locale when you don't > have any locales installed. C always exists, but C.UTF-8 no. Ludo’.

bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-19 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/13/2014 7:53 AM, Ludovic Courtès wrote: > Hello, > > t0251-gpt-unicode.sh requires the C.UTF-8 locale and fails if it > isn’t available. > > What about: > > 1. Exiting with 77 when the locale is unavailable? > > 2. Choosing another locale, suc

bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-13 Thread Brian C. Lane
On Wed, Aug 13, 2014 at 09:55:26PM +0200, Ludovic Courtès wrote: > The test could look for a valid UTF-8 locale like this: > > --8<---cut here---start->8--- > found_locale=no > for locale in en_US de_DE fr_FR es_ES > do > LC_ALL="$locale.utf8" > > # In a UT

bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-13 Thread Ludovic Courtès
"Brian C. Lane" skribis: > See my patch here: > > http://lists.alioth.debian.org/pipermail/parted-devel/2014-July/004568.html -export LC_ALL=C.UTF-8 +if [ -e "/usr/share/locale/en_US/" ]; then +export LC_ALL=en_US.UTF-8 +else +export LC_ALL=C.UTF-8 +fi The problem is that this directory

bug#18258: t0251-gpt-unicode.sh fails when the C.UTF-8 locale is unavailable

2014-08-13 Thread Ludovic Courtès
Hello, t0251-gpt-unicode.sh requires the C.UTF-8 locale and fails if it isn’t available. What about: 1. Exiting with 77 when the locale is unavailable? 2. Choosing another locale, such as en_US.utf8? As of GNU libc 2.19, C.UTF-8 (or any other spelling) does not exist. Thanks, Ludo’.