Skip to content
Tcl Source Code Check-in [4c4b417d21]
Login

Check-in [4c4b417d21]

Overview
Comment:Add to Tcl_ExternalToUtf() a capability to impose a limit on the number of chars produce in the encoding result. When the flag TCL_ENCODING_CHAR_LIMIT is set and dstCharsPtr is not NULL, then the initial value of *dstCharsPtr is taken as the max number of chars to produce. The limit is imposed in a way that does not require the assistance of the encoding's driver procs, but the flag is passed on to them in case they can do better when they know they should. No callers updated yet. No drivers updated yet. One difficulty is that this necessarily imposes a pre-translation limit, and the I/O system has a history of wanting to impose only a post-translation limit.
Timelines: family | ancestors | descendants | both | dgp-encoding-flags
Files: files | file ages | folders
SHA1: 4c4b417d2174c79668152fd01acb5f07c219753a
User & Date: dgp on 2014-11-15 21:46:19.629
Other Links: branch diff | manifest | tags
Context
2014-11-17
13:00
merge trunk check-in: 0b851de3a3 user: dgp tags: dgp-encoding-flags
2014-11-15
21:46
Add to Tcl_ExternalToUtf() a capability to impose a limit on the number of chars produce in the enco... check-in: 4c4b417d21 user: dgp tags: dgp-encoding-flags
21:13
With no padding needed for a terminating NUL, there no need for a distinction between the dstNeeded ... check-in: 08d5c4e676 user: dgp tags: dgp-encoding-flags
Changes