Skip to content
Tcl Source Code Check-in [1b53b7b70c]
Login

Check-in [1b53b7b70c]

Overview
Comment: * generic/tclIO.c (WriteChars): Fix for SF #506297, reported by Martin Forssen <[email protected]>. The encoding chosen in the script exposing the bug writes out three intro characters when TCL_ENCODING_START is set, but does not consume any input as TCL_ENCODING_END is cleared. As some output was generated the enclosing loop calls UtfToExternal again, again with START set. Three more characters in the out and still no use of input ... To break this infinite loop we remove TCL_ENCODING_START from the set of flags after the first call (no condition is required, the later calls remove an unset flag, which is a no-op). This causes the subsequent calls to UtfToExternal to consume and convert the actual input.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1b53b7b70c86dd98ab6775792ddd47f76248112c
User & Date: andreas_kupries on 2002-01-21 20:38:06.000
Other Links: manifest | tags
Context
2002-01-21
21:05
* Converted declarations of TestReport file system to more portable form. [Bug 501417]. check-in: e78bbf1c73 user: dgp tags: trunk
20:38
* generic/tclIO.c (WriteChars): Fix for SF #506297, reported by Martin Forssen <[email protected]... check-in: 1b53b7b70c user: andreas_kupries tags: trunk
16:15
* Updated APIs in generic/tclCmdMZ.c according to the guidelines of TIP 27. check-in: 8006e9294e user: dgp tags: trunk
Changes