diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2008-03-18 18:14:56 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2008-03-18 18:14:56 (GMT) |
commit | 470974e58af0fbff9f2e8764814dfdb44c6cbe55 (patch) | |
tree | da22989bd106f14be65df0e08dece1fd166fcf48 /ChangeLog | |
parent | f3fda21842ffb15c3316d744fca375c5f88124db (diff) | |
download | tcl-470974e58af0fbff9f2e8764814dfdb44c6cbe55.zip tcl-470974e58af0fbff9f2e8764814dfdb44c6cbe55.tar.gz tcl-470974e58af0fbff9f2e8764814dfdb44c6cbe55.tar.bz2 |
* 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.
FossilOrigin-Name: 24a32ceeee7c50e2602b5a7b3bb4a545474bd91a
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,18 @@ +2008-03-18 Andreas Kupries <andreask@activestate.com> + + * 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. + 2008-03-18 Don Porter <dgp@users.sourceforge.net> * generic/tclExecute.c: Patch from Miguel Sofer to correct the |