Version 4 of Problems with Tclkitsh 8.5.7

Updated 2009-04-22 11:35:11 by PT

Mho: I wonder if there are any differences between tclkitsh 8.4.19 and 8.5.7 regarding encodings.

In several of my win32 starpacks I include the codepages cp437 (and/or cp850) and initialize like that (because otherwise encoding problems with the console occur):

 :
 # http://mini.net/tcl/52 ff.
 # http://wiki.tcl.tk/3661
 if {[info commands librarypath] == "librarypath"} {
    librarypath $libRoot
 }
 foreach {channel} {stdin stdout stderr} {
    fconfigure $channel -encoding cp850; # or 437?        
 }     
 :

If I now 'compile' the unchanged program with a 8.5.7 runtime, the program just seems to stop at the fconfigure stdout-step, displaying ugly output like ???????????????? ?????????? ??????????? or so. I had to comment out every fconfigure in the program. Just CATCHing doesn't help.


DGP In Tcl 8.5, use encoding dirs. MHo: But cp850 is now included in the runtime, and the librarypath command returns no error. So why does the fconfigure not work? The encoding should be accessable...


PT: There is a bug tracker at http://tclkit.googlecode.com/