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

Bug#756052: Correct default keymap for South Korea



Package: console-setup
Version: 1.108
Severity: normal

In debian/keyboard-configuration.config, the default keymap for "*_KP*"
locale is set as "kr" layout. But "KP" ISO3166 code is for North Korea,
while "kr" layout corresponds to South Korean standard. So I believe
this is put by a mistake. AFAIK North Korea has their own standard
layout.

Here attached my change for adding proper kr keymap defaults. "kr" with
"kr104" variant is safer choice than just "kr" with no variant.


Question for improvement:

In case of Korean d-i installation, IMO it would be better if users
explicitly select between "kr" with "kr104" variant and "kr" with no
variant. Is it possible?

diff --git a/debian/keyboard-configuration.config b/debian/keyboard-configuration.config
index a13f8ce..163c146 100644
--- a/debian/keyboard-configuration.config
+++ b/debian/keyboard-configuration.config
@@ -603,8 +603,9 @@ case "$locale" in
     *_KH*)
 	XKBLAYOUT=us,kh  # Cambodia
 	;;
-    *_KP*)
-	XKBLAYOUT=kr  # Korea
+    *_KR*)
+	XKBLAYOUT=kr      # South Korea
+	XKBVARIANT=kr104  # pc104 compatible mode, safe choice
 	;;
     *_KZ*)
 	XKBLAYOUT=us,kz  # Kazakhstan
@@ -872,6 +873,8 @@ if db_get debian-installer/keymap && [ "$RET" ]; then
 	is) XKBLAYOUT="is";;
 	it) XKBLAYOUT="it";;
 	jp106) XKBLAYOUT="jp"; XKBVARIANT="106";;
+	kr|kr106) XKBLAYOUT="kr"; XKBVARIANT='';;
+	kr104) XKBLAYOUT="kr"; XKBVARIANT="kr104";;
 	la) XKBLAYOUT="latam";;
 	lt) XKBLAYOUT="lt";; 
 	lv-latin4) XKBLAYOUT="lv";;

Reply to: