<i>Inconsistent use of TCL_ENCODING_NO_TERMINATOR</i> status still Open with 4 other changes
by
.
D 2023-03-12T17:06:54.883
J comment The\s`Tcl_ExternalToUtf`\sfunction\sdoes\snot\sappend\sa\sterminating\snul\s(by\sdesign)\sif\sthe\sTCL_ENCODING_NO_TERMINATE\sflag\sis\sspecified.\sThis\sis\suseful\sfunctionality.\sHowever,\sthe\scomplementary\s`Tcl_UtfToExternal`\sfunction\signores\sthis\sflag\sand\salways\sappends\sa\snull.\r\n\r\nThis\sis\ssurprising\sbehavior\sas\sflags\sare\scommonly\sdefined\sfor\sthe\stwo\sfunctions\sso\s`Tcl_UtfToExternal`\sshould\salso\sobey\sthis\sflag.\r\n\r\nMoreover,\sthis\sflag\sis\suseful\sand\spublic\sin\s`tcl.h`\sbut\sis\sundocumented\sin\sa\smanpage\sor\sTIP\safaict.\sIt\sshould\sbe\sdocumented\sfor\suse\sby\sextensions\s(for\s8.7\sat\sleast)\sor\smoved\sto\s`tclInt.h`.
J foundin 8.6
J login apnadkarni
J mimetype text/plain
K d1a39e8c28d35dca1afc97cbf9006c1b9298f816
U apnadkarni
Z 4eb9c0629b9e482276e54a9307c4a05f