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

Re: Bug#596547: keyboard unusable



tags 596547 patch
kthxbye

Le 12 Sep 2010 18:33, Julien Cristau a écrit:
> en_US should still work (I didn't know that layout existed), but the
> script handling the move from xorg.conf to keyboard-configuration (in
> /var/lib/dpkg/info/keyboard-configuration.config) turns the option to
> lowercase :/
> 
> Anton, do you have an idea how to fix this (or anyone else, for that
> matter)?  We need to parse the xorg.conf keywords and option names
> case-insensitively, but the option values themselves are case-sensitive.

Here is a patch that fixes this issue: values are captured in a
case-sensitive way.

Cheers,

Olivier
--- console-setup-1.55/debian/keyboard-configuration.config	2010-07-11 11:01:04.000000000 +0200
+++ console-setup-1.55.my/debian/keyboard-configuration.config	2010-09-12 19:39:01.029458243 +0200
@@ -782,8 +782,9 @@
 then
     awk_expr='
 {
-    $0 = tolower($0);
     sub("#.*","")
+    line = $0;
+    $0 = tolower($0);
     xkb = "";
 }
 
@@ -799,6 +800,7 @@
 	} else if ($2 == "\"xkboptions\"") {
 	    xkb = "XKBOPTIONS"; 
 	}
+   $0 = line;
 	$1 = "";
 	$2 = "";
     }

Attachment: signature.asc
Description: Digital signature


Reply to: