Bug#207199: locales: locale-gen should complain about malformed /etc/locale.gen files
Package: locales
Version: 2.3.2-3
Severity: normal
# cat /etc/locale.gen
en_US.ISO-8859-1
en_US.UTF-8
# locale-gen
Generating locales...
Generation complete.
Hmph.
# locale-gen
+ LOCALEGEN=/etc/locale.gen
+ LOCALES=/usr/share/i18n/locales
+ '[' -f /etc/locale.gen -a -s /etc/locale.gen ']'
+ rm -rf '/usr/lib/locale/*'
+ umask 022
+ echo 'Generating locales...'
Generating locales...
+ read locale charset
+ '[' -n en_US.ISO-8859-1 -a -n '' ']'
+ continue
+ read locale charset
+ '[' -n en_US.UTF-8 -a -n '' ']'
+ continue
+ read locale charset
+ '[' -n '' -a -n '' ']'
+ continue
+ read locale charset
+ echo 'Generation complete.'
Generation complete.
This tool expects two "words" in each line of locale.gen.
It should complain if the input is malformed.
-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux tentacle 2.4.19-pre7-ben0 #1 Tue Jun 18 10:25:42 EST 2002 ppc
Locale: LANG=C, LC_CTYPE=C
Versions of packages locales depends on:
ii debconf 1.3.9 Debian configuration management sy
hi libc6 [glibc-2.3.2-3] 2.3.2-3 GNU C Library: Shared libraries an
-- debconf information:
* locales/default_environment_locale: C
* locales/locales_to_be_generated: en_US.ISO-8859-1, en_US.UTF-8
Reply to: