[Gtk-sharp-list] Mono + UTF-8 = strange behavior

bubulescu testelor at yahoo.com
Mon May 3 01:43:32 EDT 2010


I didn't know where to post it so, since I'm on linux, this section seemed
appropriate. If not, my apologies. 

I am running SMath Studio in ubuntu (previously Karmic, now Lucid) and there
seems to be a strange behavior (for me): special characters like ăşţîâ don't
show in tooltips or dialogs, but they do in menus and main program. Below is
a small screenshot: 

(it seems that at the preview of the message, nabble deleted the picture;
instead, I'm posting the link to it) 

It can be seen that the same character, ă, is displayed correctly in
"Aritmetică" (up, main program), but not in "Număr" (tooltip). 
I tried various approaches: changing locale to CP1250, ISO-8859-2, running
the program with "LC_ALL=<codepage> mono xxx.exe", changing the translation
file to CP1250 and ISO8859-2 from UTF-8 (that says: "falling back to C
locale", but the menu characters are still OK), grabbing the sources from
the main page and recompiling them (Ubuntu has 2.4) because the developer of
SMath showed me a screenshot of the program running in openSuse 11 (which
has 2.6), and it works for him. But, nothing. Searching the internet only
showed me the locale approach, and in the forums, here, got me to this
closest result. But, since I am not compiling any program... 
The tries have been in Karmic and Lucid (except compiling, in Lucid). I
posted in the Ubuntu forums, thinking that it may be a problem with their
packages. I'm posting here, too, thinking that you know more about mono than
anyone else. 
Now I'm left staring at the squares with no solution and it's a bit
frustrating to know that there is one but I cant see it. I even bet it's a
simple one right under my nose. However it is, I'm stuck and asking for
help. So, if anyone thinks that can help, please do. 

Anticipated thanks, 
View this message in context: http://mono.1490590.n4.nabble.com/Mono-UTF-8-strange-behavior-tp2123520p2123520.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list