#2 Locale support !

open
nobody
None
5
2003-06-11
2003-06-11
Anonymous
No

Hi,

I just tried xpaint 2.70 and found it doesn't work with
non-english locale,
actually I tried ru_RU.KOI8-R. I can't input any 8-bit
characters.
The solution is to include <locale.h> and in main.c at
the very beginning
call setlocale function:

if (!setlocale(LC_CTYPE, ""))
printf(stderr,"Cannot set locale");

This helps, now I could input cyrillics using text
tools, but I can't
select any cyrillic font - they just don't listed ! I
don't familiar with X, so
I leave this problem to developer.

Regards,
Oleg

Discussion