Explicitely set LANGUAGE=C to avoid possible locale issues
authorMichael Prokop <mika@grml.org>
Thu, 4 Jun 2015 11:33:34 +0000 (13:33 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 4 Jun 2015 11:36:04 +0000 (13:36 +0200)
In github issue #48 the following was reported when running with
option --debopt "--verbose --include=grub-pc,locales":

| *** update-locale: Error: invalid locale settings:  LANGUAGE=en_US:en LANG=en_US.UTF-8

While this shouldn't be a real problem but just a warning message
it still might be a good idea to explictely reset LANGUAGE=C.

See https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
for details regarding LANG/LC_ALL/LANGUAGE handling.

Fixes #48 @ github

grml-debootstrap

index 4554d46..5e30e00 100755 (executable)
@@ -84,6 +84,7 @@ MNTPOINT="/mnt/debootstrap.$$"
 # inside the chroot system locales might not be available, so use minimum:
 export LANG=C
 export LC_ALL=C
+export LANGUAGE=C
 
 # make sure interactive mode is only executed when
 # using an empty configuration file or option --interactive