Overview
| Comment: | * 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. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
24a32ceeee7c50e2602b5a7b3bb4a545 |
| User & Date: | andreas_kupries on 2008-03-18 18:14:56.000 |
| Other Links: | manifest | tags |
References
|
2015-12-09
| ||
| 08:19 | • New ticket [9a829af10f] Source encoding for modules (tcl::tm) not correctly docu... artifact: 1588f56b62 user: twylite | |
Context
|
2008-03-18
| ||
| 18:52 | fix and simplify the OFFSET computation for TclStackAlloc check-in: dfb1d90bd7 user: msofer tags: trunk | |
| 18:14 | * library/tm.tcl (::tcl::tm::UnknownHandler): Changed 'source' to 'source -encoding utf-8'. Thi... check-in: 24a32ceeee user: andreas_kupries tags: trunk | |
| 18:02 | Fix oops. Use ::list, not list, prevent use of the namespace local command. check-in: bf1856b94a user: andreas_kupries tags: trunk | |
Changes
Modified ChangeLog
from [4ef2acb72f]
to [b542746c09].
[diff]
Modified library/tm.tcl
from [eb9c481dd1]
to [e17bc41346].
[diff]