Package: console-data
Version: 2:1.06-1
Severity: wishlist

The attached patch will ensure that keymaps for languages that do have a 
UTF-8 locale, but without the .UTF-8 suffix also get sorted.

BIG WARNING
While testing this patch, I noticed that no translations are being added for 
console-keymaps-at and -acorn. This can be seen by the fact that only en is 
listed when sorting the keymaps. This also happens after cleanly extracting 
the source for 1.06-1.

The reason for this (for -at at least) seems to be the missing translation 
for ca-multi. When a translation for that single keymap is missing the 
translation is just not included _at all_ by po2debconf.
This does not seem acceptable to me as the addition of a single keymap 
should never be sufficient reason for such a major regression.
From the docs it seems this could be avoided by adding '#flag:partial' in 
the templates.

Other issue
The file debian/substvars is not getting deleted during a debclean, which 
could cause build problems. Suggest you add it to the clean:: target in 
debian/rules.

diff -u console-data-1.06/debian/sort-keymaps console-data-1.06/debian/sort-keymaps
--- console-data-1.06/debian/sort-keymaps
+++ console-data-1.06/debian/sort-keymaps
@@ -27,6 +27,19 @@
         lang=${file#list.}
 	echo -n $lang...
         unilang=$(grep "^$lang.*\\.UTF-8" /usr/share/i18n/SUPPORTED | sed -e 1q | sed -e 's/[EMAIL PROTECTED] ].*//' )
+	# The following languages do have a UTF-8 locale, but without .UTF-8 postfix
+	if [ -z "$unilang" ]; then
+	    case $lang in
+		gu|hi|ml|mr|pa|ta)
+			unilang=${lang}_IN ;;
+		bn)	unilang=bn_BD ;;
+		dz)	unilang=dz_BT ;;
+		km)	unilang=km_KH ;;
+		ne)	unilang=ne_NP ;;
+		vi)	unilang=vi_VN ;;
+		wo)	unilang=wo_SN ;;
+	    esac
+	fi
         if [ -z "$unilang" ]; then
             echo "Warning: lang $lang skipped because no UTF-8 variant found" 1>&2
         else

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to