<div>Dear Roy,</div><div><br you for great KitCreator. This is another ticket in the series of this Wiki folder:<br kitInit.c, Line 392:</div><div><br "tclkit_system_encoding", Tcl_DStringValue(&amp;encodingName), 0);<br me, the last parameter should be changed from "0" to "TCL_GLOBAL_ONLY" to make the variable "tclkit_system_encoding" visible for boot.tcl.</div><div><br boot.tcl, Line 103:</div><div><br system" is checked for result "identity" as a sign, that the system encoding is not set.</div><div>Since tcl 8.6.0, the default is "iso8859-1" and not "identity".</div><div><br I propose to change the code (perhaps only for tcl 8.6.x) to:</div><div><br {[info exists ::tclkit_system_encoding] &amp;&amp; $::tclkit_system_encoding != "" &amp;&amp; [encoding system] ne $::tclkit_system_encoding } {<br />&nbsp;&nbsp;&nbsp; catch {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; encoding system $::tclkit_system_encoding<br />&nbsp;&nbsp;&nbsp; }<br works for me to change the system encoding to "cp1252" using a C-VFS within a DLL.</div><div><br change may be done to the lines just after this block:</div><div><br If we've still not been able to set the encoding, revert to Tclkit defaults<br />if {[encoding system] eq "identity"} {<br />&nbsp;&nbsp;&nbsp; catch {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch $::tcl_platform(platform) {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; windows&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { encoding system cp1252 }<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; macintosh&nbsp;&nbsp;&nbsp; { encoding system macRoman }<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { encoding system iso8859-1 }<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br suppose, the platform "macintosh" has changed to "darwin". As utf-8 is now the default for mac and many Unix (which is an always present internal encoding), this block may perhaps be removed entirely.</div><div><br do you think ?</div><div><br you for all,</div><div>Harald<br