summaryrefslogtreecommitdiffstats
path: root/unix/tclXtTest.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-06-05 15:17:29 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-06-05 15:17:29 (GMT)
commit3eb959fc935f4f1a92c7527be675245c0def5dfd (patch)
treeac34e58ae45bc9c662b94326b71d2b603b0c753d /unix/tclXtTest.c
parent3189f48d19ee5fe595f856ca7d755f61414cfbef (diff)
downloadtcl-3eb959fc935f4f1a92c7527be675245c0def5dfd.zip
tcl-3eb959fc935f4f1a92c7527be675245c0def5dfd.tar.gz
tcl-3eb959fc935f4f1a92c7527be675245c0def5dfd.tar.bz2
When too many chars are read by ReadChars() and we trim the limits to
get it right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code.
Diffstat (limited to 'unix/tclXtTest.c')
0 files changed, 0 insertions, 0 deletions