[Bug 436378] testutf8 sometimes hangs hard in X terminals
http://bugzilla.novell.com/show_bug.cgi?id=436378 http://bugzilla.novell.com/show_bug.cgi?id=436378#c12 --- Comment #12 from Gabriele Mohr <gs@novell.com> 2010-04-06 13:11:51 UTC --- 'testutf8' is used at different places in the yast start script. We might avoid the usage to check whether unicode_start has to be called by not setting UTF-8 as default mode. But it is also used to fix the locale settings, e.g. in xterm (see below). Though the comment says "should we do this here" I would recommend to let the script as it is. IMHO 'testutf8' should be restored for the yast start script. /sbin/yast2, line 359 .. case "$TERM" in rxvt*|vt*|xterm*|linux|screen*) # fix locale settings if they are not suitable for the # terminal setting (UTF-8 or not) # But should we really do this here? Isn't it user error # if the locale settings are not suitable for the terminal # used? # the terminal is not in UTF-8 mode, strip .UTF-8 suffix # from the locale variables: if [ "$UTF8TESTED" == "yes" -a $UTF8STATUS -eq 1 ] ; then for lc in LANG LC_CTYPE LC_NUMERIC LC_TIME \ LC_COLLATE LC_MONETARY LC_MESSAGES \ LC_PAPER LC_NAME LC_ADDRESS \ LC_TELEPHONE LC_MEASUREMENT \ LC_IDENTIFICATION LC_ALL do eval val="\$$lc" if [ -n "$val" ] ; then eval $lc=\${val%%.UTF-8} eval export $lc fi done # the terminal is in UTF-8 mode so strip any possible suffix from # the locale variables and append .UTF-8. # But leave those which are empty or set to POSIX or C alone, # POSIX.UTF-8, C.UTF-8, or .UTF-8 doesn't make sense (bug #285178). elif [ "$UTF8TESTED" == "yes" -a $UTF8STATUS -eq 2 ] ; then for lc in LANG LC_CTYPE LC_NUMERIC LC_TIME \ LC_COLLATE LC_MONETARY LC_MESSAGES \ LC_PAPER LC_NAME LC_ADDRESS \ LC_TELEPHONE LC_MEASUREMENT \ LC_IDENTIFICATION LC_ALL do eval val="\$$lc" if [ -n "$val" -a "$val" != "POSIX" -a "$val" != "C" ] ; then eval $lc=\${val%%[.@]*}.UTF-8 eval export $lc fi done fi #default: do nothing, keep locale untouched ;; -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com