Page 1 of 1

newlisp-tk localization

Posted: Wed Oct 18, 2006 11:41 am
by vizvaryp
Hello.

Maybe it is a general question but I experience it in win2k/xp.

In newlisp-tk:
> (set-locale "") ==> "Hungarian_Hungary.1250"
After this some characters look with wrong shape (these
are special Hungarian "accented" characters) but their
codes are ok (characters with that code look in notepad
well...)

> (tk "encoding system") ==> "identity"
I don't know what does it mean in this case, and
> (tk "encoding names") ==> "utf-8 identity unicode"
I think these are possible.

What should I do for good-looking characters?

Note, that newlisp exe works well if I set the locale
"Hungarian_Hungary.852" and not .1250 which I get
back from (set-locale ""). (It is maybe just because
shell/command prompt uses different codepage and
set-locale ask windows, not the shell.)

Thank you for your help.
Regards
Peter
ps. Sorry for the long post with weak English.

Posted: Wed Oct 18, 2006 1:01 pm
by Lutz
Hi Peter,

newlisp-tk.exe uses the built-in Tcl/Tk to display characters, I am not very familiar with Tcl/tk, so I cannot help you there. Perhaps there is a way to modify the locale for Tcl/Tk using the 'tk' command?

Also, have you tried to set "Hungarian_Hungary.852" Windows system-wide using the Windows Control panel? Perhaps Tcl/Tk is also using "Hungarian_Hungary.1250"

Lutz