[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#250376: prebaseconfig should set APP_CHARSET_MAP



Package: languagechooser
Version: 1.22
Severity: important
Tags: patch l10n d-i

Hi,

After I tested the 20040521 daily built Sarge ISO, I noticed that the 
default Turkish console font 'ter-916f' couldn't be set properly.  I 
don't know whether this is indeed a bug related with the Terminus font 
itself (shouldn't it be sufficed to set only the SCREEN_FONT_MAP?), but 
'APP_CHARSET_MAP' must also be set in the /etc/console-tools/config file 
for Turkish console, since when I set the mentioned variable as 'iso09', 
the problem disappeared after invoking an '/etc/init.d/console-screen.sh 
restart' command.  So please consider the attached patch as a workaround 
if this is indeed an issue related with the console-terminus package.

I am sending the patch 'prebaseconfig.patch' to resolve the problem, 
though I'm not comfortable with it, because it relies on the content of 
default config file supplied by the console-tools package.  I think we 
shouldn't make a deep assumption on the console-tools content.  I 
suggest to apply the alternative patch 'prebaseconfig-alternative.patch' 
which IMHO, presents a much simple solution.

Regards,

-- 
roktas
--- prebaseconfig	2004-04-13 10:57:45.000000000 +0300
+++ prebaseconfig.new	2004-05-22 17:56:19.000000000 +0300
@@ -20,15 +20,12 @@
         acm=`echo $consolefont | sed -e 's/.*(//' -e 's/).*//'`
         [ "$acm" = utf8 ] && acm=
         if [ -n "$acm" ]; then
-            sed -e "s/^#SCREEN_FONT_MAP=iso01/SCREEN_FONT_MAP=$acm/" \
-                $ctconfig > $ctconfig.tmp && \
-            mv $ctconfig.tmp $ctconfig
+            echo "SCREEN_FONT_MAP=$acm" >>$ctconfig
+            echo "APP_CHARSET_MAP=$acm" >>$ctconfig
         fi
         consolefont=`echo $consolefont | sed -e 's/(.*//'`
         if [ -n "$consolefont" ]; then
-            sed -e "s/^#SCREEN_FONT=iso01.f16/SCREEN_FONT=$consolefont/" \
-                $ctconfig > $ctconfig.tmp && \
-            mv $ctconfig.tmp $ctconfig
+            echo "SCREEN_FONT=$consolefont" >>$ctconfig
         fi
     fi
     ;;
--- prebaseconfig	2004-04-13 10:57:45.000000000 +0300
+++ prebaseconfig.new	2004-05-22 17:59:29.000000000 +0300
@@ -21,6 +21,7 @@
         [ "$acm" = utf8 ] && acm=
         if [ -n "$acm" ]; then
             sed -e "s/^#SCREEN_FONT_MAP=iso01/SCREEN_FONT_MAP=$acm/" \
+                -e "s/^#APP_CHARSET_MAP=iso05/APP_CHARSET_MAP=$acm/" \
                 $ctconfig > $ctconfig.tmp && \
             mv $ctconfig.tmp $ctconfig
         fi

Attachment: signature.asc
Description: Digital signature


Reply to: