Comment 10 for bug 10655

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 24 Nov 2004 23:45:03 +0100
From: Christian Perrier <email address hidden>
To: <email address hidden>, <email address hidden>
Cc: <email address hidden>
Subject: Patch for fixing the sorting bug in console-data

--L6iaP+gRLNZHKoI4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Attached is a proposed patch to the sort-keymaps script so that
escaped commas are temporarily replaced while the sorting algorithm
operates, and put back after it.

Frans, I used your suggestion of "#@#" as a replacement string.

I have checked it works by building a d-i mini.iso for i386 one can
download at http://www.perrier.eu.org/~bubulle/mini.iso.

Boot with "linux DEBCONF_PRIORITY=medium", then Dutch, Nederlands, PC
kbd and the list now appears...

Norwegian has been checked as well.

--

--L6iaP+gRLNZHKoI4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.282582"

--- sort-keymaps.old 2004-11-24 23:39:43.000000000 +0100
+++ sort-keymaps 2004-11-24 23:33:11.000000000 +0100
@@ -9,6 +9,7 @@
     mkdir $pkgname || true
     cd $pkgname
     sed -n -e "/^Template: $pkgname\\/keymap/,/^Description:/p" ../../$pkgname/DEBIAN/templates |
+ sed -e "s/\\\\,/#@#/g" |
     sed -e "s/\.UTF-8:/\.UTF-8,/g" |
     perl -p -e '
     chomp;
@@ -39,7 +40,7 @@
     # files have to be added to the $pkgname/keymap template.
     sed -e "/$pkgname.*keymap/{n;q;}" ../../$pkgname/DEBIAN/templates >templates.tmp
     cat sorted* >>templates.tmp
- sed -e "/$pkgname.*keymap/!d;/$pkgname.*keymap/{:end;n;b end}" ../../$pkgname/DEBIAN/templates | sed '1,2d'>>templates.tmp
+ sed -e "/$pkgname.*keymap/!d;/$pkgname.*keymap/{:end;n;b end}" ../../$pkgname/DEBIAN/templates | sed '1,2d' | sed 's/#@#/\\\\,/g' >>templates.tmp
     mv templates.tmp ../../$pkgname/DEBIAN/templates
     cd ..
 done

--L6iaP+gRLNZHKoI4--