X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/59c9c0e467534a6ee70b6f8fa2e6ed16f12338a9..8d09a762192c5a26dfa36b973e5adc1a4786e0dc:/dot/bash_profile diff --git a/dot/bash_profile b/dot/bash_profile index de5a5cf..1621d13 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -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=