Skip to content
Tcl Source Code Artifact [4c4b417d21]
Login

Artifact [4c4b417d21]

Artifact 4c4b417d2174c79668152fd01acb5f07c219753a:

Manifest of check-in [4c4b417d21] - 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. by dgp on 2014-11-15 21:46:19.
B 9971779e88d7f9f7d223d4a13a795a38d2ff28d5
C Add\sto\sTcl_ExternalToUtf()\sa\scapability\sto\simpose\sa\slimit\son\sthe\snumber\nof\schars\sproduce\sin\sthe\sencoding\sresult.\s\sWhen\sthe\sflag\nTCL_ENCODING_CHAR_LIMIT\sis\sset\sand\sdstCharsPtr\sis\snot\sNULL,\sthen\sthe\ninitial\svalue\sof\s*dstCharsPtr\sis\staken\sas\sthe\smax\snumber\sof\schars\sto\sproduce.\nThe\slimit\sis\simposed\sin\sa\sway\sthat\sdoes\snot\srequire\sthe\sassistance\sof\sthe\nencoding's\sdriver\sprocs,\sbut\sthe\sflag\sis\spassed\son\sto\sthem\sin\scase\sthey\ncan\sdo\sbetter\swhen\sthey\sknow\sthey\sshould.\s\sNo\scallers\supdated\syet.\nNo\sdrivers\supdated\syet.\n\nOne\sdifficulty\sis\sthat\sthis\snecessarily\simposes\sa\spre-translation\slimit,\nand\sthe\sI/O\ssystem\shas\sa\shistory\sof\swanting\sto\simpose\sonly\sa\spost-translation\nlimit.
D 2014-11-15T21:46:19.629
F README d192b607061e80e6819210d0f553f1f985cf24c6
F changes 385ed2d4f67ae5ef982d6fcba333abc855eb9393
F generic/tcl.h 09f6cbfaac5111a87b683a45047f2d141b03f5bc
F generic/tclCompCmdsGR.c eed8851480b25ba7d54e303e25ece06debf6d923
F generic/tclEncoding.c a4eadb9d7db0bfe025d19f40db30a2446abc3baf
F generic/tclIO.c 1b54cb52c843f1cd534bbee2a139f6dc7a781a40
F generic/tclIOGT.c 09ee6c208edde9bea9344f14c421af5145683b06
F generic/tclIORTrans.c 5e52d3504100ed5204c00985eac5c220540f41e6
F generic/tclOO.h ea068b28547da17e75a63e0b5b0b2a5abeba3089
F library/init.tcl 106924f609059e4e3d93a80a3edd7a7984b560c6
F tests/append.test 2d5f4478dd9d720bcb2c2b5c81bf46f4f9c53440
F tests/appendComp.test 449640c6034b61df64ffb50264a9d56b9b9effcc
F tests/interp.test 39d4eb074e1ed169a9df7d826c59b6e0c5c235e7
F tests/io.test 29c43c8093a1eca3bfcf565ce3539ac85b71d20b
F tests/ioTrans.test 17dea4b3a2ffc4f22fe1b38151a5da5212767296
F tests/iogt.test 8c968352ffa81199f4409409b80b6f6c29c65b6c
F tests/oo.test 1d158e303883047e7366fb07e19622b75838a510
F tests/ooNext2.test eb88c358336b8c2749fcb88f31af22a9e50b5847
F tests/parse.test f7de27b134a12f196f85fe83e8e71ef802e0229c
F tests/parseOld.test d609c7422f6c48d20292bef9dbc9c2bd3f405544
F tests/socket.test e105a10a1be2b5fd6018de32df48cb142d63ba83
F tests/subst.test 35a406196e614acfc97b2a935a1b22331a5ed1a7
F tests/utf.test 985334ce1732a324d55b8d3392fbe09c6932cb46
F unix/configure 9c2d994d1a9b125e30f7a3b52a4e4fdb6e3030e4 x
F unix/configure.in c22cdcd0bbfff10689637e8115b43d89a34cb9ce
F unix/tcl.spec e4347599d0bb41142754e57f5031419ad1b05d7b
F unix/tclooConfig.sh 9b51174364d91cabc565a70536082360bc9ab348
F win/configure be66902732973e9c75eabf73b705c24f3ac1fd3f x
F win/configure.in 1d276831ec46541c7a07048e4d77bc895f0921a8
F win/tclooConfig.sh 9b51174364d91cabc565a70536082360bc9ab348
P 08d5c4e676a40ab7071322ce4b13e3d32edcee2b
R d49e565442914b66da1edbec4ffd44b1
U dgp
Z f8af0de5a2309829c6c29c28e7cc4e3e