newlisp-tk localization

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
vizvaryp

newlisp-tk localization

Post 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.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked