From: Mark Wooding Date: Fri, 13 May 2011 19:59:06 +0000 (+0100) Subject: dot/bash_profile: Use `kbd_mode' to check for UTF-8 console. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/4abf3071013a67f769686639c8392d5f81765be5 dot/bash_profile: Use `kbd_mode' to check for UTF-8 console. Unfortunately, `vt-is-UTF8' isn't always available. --- diff --git a/dot/bash_profile b/dot/bash_profile index 12f5f52..7d3bf4c 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -118,7 +118,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=