Skip to content
Tcl Source Code Artifact [725fbc7113]
Login

Artifact [725fbc7113]

Artifact 725fbc71132f312cdbe72ed0148b4774398dff963886a6d9eb5dacff3c0921c8:

Ticket change [725fbc7113] - New ticket [3fc3287497a7e281|3fc3287497] <i>TclGetProcessGlobalValue encodes information twice on Windows</i>. by ralfixx on 2024-05-22 16:29:42.
D 2024-05-22T16:29:42.077
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment If\sthe\shostname\son\sWindows\scontains\san\sUmlaut,\s[info\shostname]\swill\sreturn\sa\sdifferent\svalue\swhen\sinvoked\sfor\sthe\ssecond\stime:\r\n\r\n\s\s\s\s%\stclsh8.6\r\n\s\s\s\s%\sinfo\shostname\r\n\s\s\s\sfoo-läptop\r\n\s\s\s\s%\sinfo\shostname\r\n\s\s\s\sfoo-läpt\r\n\r\nFor\sTCL\s9,\sthere\shas\sbeen\sa\schange\sto\sgeneric/tclUtil.c,\sTclGetProcessGlobalValue()\s\r\nwhere\sin\sthe\scall\sto\sUtfToExternalDStringEx()\sthe\sfirst\sargument\s\r\nwas\schanged\sfrom\spgvPtr->encoding\sto\sNULL.\r\n\r\nAlso,\sif\sI\schange\sin\sthe\sdebugger\sthe\sargument\sat\sthat\scall\sto\sNULL,\s\r\nthe\scorrect\s\sinformation\sis\sreturned\sat\sthe\ssecond\scall.\r\n\r\ntcl\s8.6,\s8.7\r\n\t\s\s\s\sTcl_UtfToExternalDString(pgvPtr->encoding,\spgvPtr->value,\r\n\t\t\s\s\s\spgvPtr->numBytes,\s&native);\r\n\t\s\s\s\sTcl_ExternalToUtfDString(current,\sTcl_DStringValue(&native),\r\n\t\s\s\s\s\s\s\s\s\s\s\s\sTcl_DStringLength(&native),\s&newValue);\r\n\r\ntcl\s9.0b2\r\n\t\s\s\s\sTcl_UtfToExternalDStringEx(NULL,\spgvPtr->encoding,\spgvPtr->value,\r\n\t\tpgvPtr->numBytes,\sTCL_ENCODING_PROFILE_TCL8,\s&native,\sNULL);\r\n\t\s\s\s\sTcl_ExternalToUtfDStringEx(NULL,\scurrent,\sTcl_DStringValue(&native),\r\n\t\tTcl_DStringLength(&native),\sTCL_ENCODING_PROFILE_TCL8,\r\n\t\t&newValue,\sNULL);\r\n\r\nThis\slogical\sfix\sshould\sbe\sapplied\sto\stcl\s8\sas\swell.\s\r\nUnfortunately\sI'm\snot\sfluent\senough\sin\sthe\sWeb-interface\sto\sfind\sthe\scommit\swhich\sdid\sthat\schange\s:-/
J foundin 8.6.14
J is_private 0
J login ralfixx
J priority 5\sMedium
J private_contact 1d3c95db24e116878d6afed7cf890a89a0effe62
J resolution None
J severity Minor
J status Open
J submitter ralfixx
J subsystem -\sNew\sBuiltin\sCommands
J title TclGetProcessGlobalValue\sencodes\sinformation\stwice\son\sWindows
J type Bug
K 3fc3287497a7e281b96661f883c20e0e74a0fca7
U ralfixx
Z a30d112497aa5e9b0c5ed825bcc37ae4