Skip to content
Tcl Source Code Artifact [24a32ceeee]
Login

Artifact [24a32ceeee]

Artifact 24a32ceeee7c50e2602b5a7b3bb4a545474bd91a:

Manifest of check-in [24a32ceeee] - * library/tm.tcl (::tcl::tm::UnknownHandler): Changed 'source' to 'source -encoding utf-8'. This fixes a portability problem of Tcl Modules pointed out by Don Porter. By using plain 'source' we were at the mercy of 'encoding system', making modules less portable than they could be. The exact scenario: A writes a TM in some weird encoding which is A's system encoding, distributes it, and somewhere else it cannot be read/used because the system encoding is different. Forcing the use of utf-8 makes the module portable. ***INCOMPATIBILITY*** for all Tcl Modules already written in non-utf-8 compatible encodings. by andreas_kupries on 2008-03-18 18:14:56.
B f311b220cd57b2c4829856565dcbbbdad24cd978
C \n\t*\slibrary/tm.tcl\s(::tcl::tm::UnknownHandler):\sChanged\s'source'\sto\n\t\s\s'source\s-encoding\sutf-8'.\sThis\sfixes\sa\sportability\sproblem\sof\n\t\s\sTcl\sModules\spointed\sout\sby\sDon\sPorter.\sBy\susing\splain\s'source'\n\t\s\swe\swere\sat\sthe\smercy\sof\s'encoding\ssystem',\smaking\smodules\sless\n\t\s\sportable\sthan\sthey\scould\sbe.\sThe\sexact\sscenario:\sA\swrites\sa\sTM\n\t\s\sin\ssome\sweird\sencoding\swhich\sis\sA's\ssystem\sencoding,\sdistributes\n\t\s\sit,\sand\ssomewhere\selse\sit\scannot\sbe\sread/used\sbecause\sthe\ssystem\n\t\s\sencoding\sis\sdifferent.\sForcing\sthe\suse\sof\sutf-8\smakes\sthe\smodule\n\t\s\sportable.\n\n\t\s\s***INCOMPATIBILITY***\sfor\sall\sTcl\sModules\salready\swritten\sin\n\t\s\snon-utf-8\scompatible\sencodings.\n
D 2008-03-18T18:14:56
F ChangeLog b542746c09f6e0c1783db2fcc016f5f8cf81b6bf
F generic/tclExecute.c a082bf4cbcd21669aadfff9a0138761ded7fe106
F library/tm.tcl e17bc41346bb82d720e0b0c65b000be1fe8b6e8a
P bf1856b94a1d5db92a0976b0b3c3b3216ab7ae77
U andreas_kupries
Z f3de9df145b510fe1a5455974e78ec1a