Overview
| Artifact ID: | efb20b192b1c30a0d332c152266119ff5d426d4c |
|---|---|
| Ticket: | 584603ffffffffffffffffffffffffffffffffff
'encoding convertfrom' causes error messages |
| User & Date: | vincentdarley on 2002-07-23 23:32:50 |
Changes
- icomment:
Logged In: YES user_id=32170 It is definitely when the system tries to output the result to console that the loop occurs, because this: encoding convertfrom identity \342 ; set a 1 just happily prints '1' in the console, no infinite loop, no error, no problem! Interestingly, 'puts \342' and 'set a \342' work fine for me. I'm interested to see in WriteChars this block, which shows there was a different bug which caused an infinite loop: /* 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. */ - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"