[Pkg-kbd-devel] Bug#386835: console-setup: fails to configure if locale says C and debian-installer/locale is missing

Colin Watson cjwatson at ubuntu.com
Sun Sep 10 14:37:04 UTC 2006


Package: console-setup
Version: 1.7
Severity: normal
Tags: patch

If the 'locale' command outputs 'C' and debian-installer/locale is
missing from the debconf database (which is quite possible), then
console-setup will fail to configure. In this case, it would be best for
it to fall back to locale=C. Patch attached.

This bug was originally filed as:

  https://launchpad.net/bugs/59718

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]
-------------- next part --------------
--- console-setup-1.7.orig/debian/config.proto	2006-07-22 21:05:55.000000000 +0100
+++ console-setup-1.7/debian/config.proto	2006-09-10 12:05:27.000000000 +0100
@@ -233,9 +233,10 @@
 
 if [ "$LC_CTYPE"  -a "$LC_CTYPE" != C ]; then
     locale=$LC_CTYPE
-else
-    db_get debian-installer/locale
+elif db_get debian-installer/locale; then
     locale="$RET"
+else
+    locale=C
 fi
 
 case "$locale" in


More information about the Pkg-kbd-devel mailing list