X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/59c9c0e467534a6ee70b6f8fa2e6ed16f12338a9..8ca91005bcad285426003ddbd2c3f1553ab21b90:/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=