chiark / gitweb /
Merge remote-tracking branch 'crybaby'
[profile] / dot / bash_profile
index de5a5cf551ac96411ca5f014f40bee9290fa8d34..1621d13d56cb4182015d063bba1d934fbf520afd 100644 (file)
@@ -135,7 +135,8 @@ else
   : ${LANG=${LC_CTYPE-${LC_ALL-`mdw-conf console-ctype`}}}
   case "$TERM,`tty`" in
     linux,/dev/tty*)
-      if vt-is-UTF8 >/dev/null 2>&1; then
+      if { vt-is-UTF8 ||
+          kbd_mode | grep UTF-8; } >/dev/null 2>&1; then
        ctype=.utf8
       else
        ctype=