On Thu, 2002-02-28 at 19:35, Petter Reinholdtsen wrote: > But termwrap do not seem to check the charset, only the language. How > is the charset chosen when using jfbterm? Is it just pure luck, or is > there something else involved? For Japanese, there are two valid > locales, ja_JP.UTF-8 and ja_JP.EUC-JP. Which one will be used?
I think jfbterm is EUC-JP. For UTF-8 you will need a different terminal emulator, like our very own bterm. You are correct that termwrap should be inspecting the character set that goes with the current locale, not the language code itself. Something like this, I guess. p. --- termwrap 2001/05/30 03:40:37 1.2 +++ termwrap 2002/02/28 23:14:49 @@ -71,8 +71,10 @@ ###################################################################### WRAPPER="" -case $LANG in -ja*) +ENCODING=$(locale charmap) + +case $ENCODING in +EUC-JP) case $TERMINAL in x) #WRAPPER="/usr/X11R6/bin/kterm -e" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]