Bug#648997: /bin/setupcon: Variable CHARMAP is defined too early
Package: console-setup
Version: 1.68+squeeze2
Severity: normal
From "/bin/setupcon":
if which ckbcomp-mini >/dev/null; then
CHARMAP=UTF-8
if [ "$VERBOSE_OUTPUT" = yes -a "$CHARMAP" != UTF-8 ]; then
echo Only UTF-8 is supported by console-setup-mini
fi
fi
The second if statement is always false, CHARMAP is defined too
early, should be after the second if statement:
if which ckbcomp-mini >/dev/null; then
if [ "$VERBOSE_OUTPUT" = yes -a "$CHARMAP" != UTF-8 ]; then
echo Only UTF-8 is supported by console-setup-mini
fi
CHARMAP=UTF-8
fi
-- System Information:
Debian Release: 6.0.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i586)
Kernel: Linux 2.6.32-35squeeze2
Locale: LANG=is_IS, LC_CTYPE=is_IS (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages console-setup depends on:
ii console-terminus 4.30-2 Fixed-width fonts for fast reading
ii debconf 1.5.36.1 Debian configuration management sy
ii keyboard-configuration 1.68+squeeze2 system-wide keyboard preferences
ii xkb-data 1.8-2 X Keyboard Extension (XKB) configu
Versions of packages console-setup recommends:
ii kbd 1.15.2-2 Linux console font and keytable ut
Versions of packages console-setup suggests:
ii locales 2.11.2-10 Embedded GNU C Library: National L
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
-- debconf information:
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
console-setup/store_defaults_in_debconf_db: true
console-setup/use_system_font:
console-setup/fontsize: 16
* console-setup/fontface47: VGA
console-setup/fontsize-text47: 16
* console-setup/charmap47: ISO-8859-1
console-setup/codesetcode: Lat15
* console-setup/fontsize-fb47: 16
-- debsums errors found:
debsums: changed file /bin/setupcon (from console-setup package)
debsums: changed file /usr/share/consoletrans/ISO-8859-1.acm.gz (from console-setup package)
--
Bjarni I. Gislason
Reply to: