[ltk-user] [PATCH] file encoding support for LTK-0.91

Masayuki Onjo masayuki.onjo at gmail.com
Thu Sep 11 12:34:00 UTC 2008

Hi, all.

Tcl/Tk support some encodings via fconfigure options.
I made a patch to add "fconfigure -encoding ..." for LTK-0.91.
This patch + following configuration, I've success to use UTF-8 with CLISP + LTK.

(system::set-default-file-encoding charset:utf-8)
(setf ltk:*default-file-encoding* "utf-8")
(setf ltk:*init-wish-hook* (list
                            (lambda ()
                              (ltk:send-wish "fconfigure stdout -encoding utf-8")
                              (ltk:send-wish "fconfigure stdin -encoding utf-8"))))


Masayuki Onjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ltk.lisp.patch
Type: text/x-patch
Size: 2736 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ltk-user/attachments/20080911/61849bbf/attachment.bin>

More information about the ltk-user mailing list