Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: Display current view in window title bar

$
0
0
Hello, IceWM queries the charset of the application locale; this is then used for translation of single-byte application strings to unicode before printing them. If the string contains characters not present in the charset, the conversion stops with a warning output (on the terminal that contains IceWM) and the string is shown only up to the non-existing character. In case of virtuoso the charset ANSI_X3.4-1968 is returned (the 127 character US-ANSI charset), which does not contain chars >0x7F. The attached patch changes the charset in this specific case to ISO-8859-1, which is a superset of US-ANSI (so nothing will break) and contains reasonable definions for the higher 128 characters, thus the conversion of the new window title format can be done completely. diff -rupN icewm-1.3.8.old/src/ylocale.cc icewm-1.3.8.new/src/ylocale.cc --- icewm-1.3.8.old/src/ylocale.cc 2013-11-17 17:54:39.000000000 +0100 +++ icewm-1.3.8.new/src/ylocale.cc 2017-12-27 16:38:36.000000000 +0100 @@ -64,6 +64,10 @@ YLocale::YLocale(char const * localeName "Assuming ISO-8859-1.\n")); codeset = "ISO-8859-1"; } + else if( 0==strcmp(codeset, "ANSI_X3.4-1968") ) + { // promote us-ansi to latin1 + codeset = "ISO-8859-1"; + } union { int i; char c[sizeof(int)]; } endian; endian.i = 1;

Viewing all articles
Browse latest Browse all 33813

Trending Articles