Skip to content
Tcl Source Code Artifact [22d7139a39]
Login

Artifact [22d7139a39]

Artifact 22d7139a39722cf955c3787420d79bf693181a8b1331ec588e849fa267defdb8:

Ticket change [22d7139a39] - New ticket [8ffd8cabd10e9362|8ffd8cabd1] <i>&quot;encoding system&quot;: wrong result without manifest</i>. by jan.nijtmans on 2025-05-05 08:37:16.
D 2025-05-05T08:37:16.237
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\swindows\s"tcl90.dll"\scan\sbe\slinked\sinto\sother\sapplications\sthan\sonly\stclsh\sand\swish.\sDoing\sthat,\sif\sthe\sother\sapplication\sdoesn't\suse\sa\smanifest,\s"encoding\ssytem"\sgives\sthe\swrong\sanswer.\r\n\r\nExample:\speople\susing\sthe\sDB2\sdatabase\suse\sthat,\sbecause\sthe\sDB2\sdll\scannot\shandle\sthe\s"utf-8"\sencoding.\sRemoving\sthe\s"UTF-8"\ssetting\sin\sthe\smanifest\sis\sa\sworkaround,\spossibly\sresulting\sin\sencoding\sproblems\sall\saround\sTcl.\sThe\swrong\sanswer\sfor\s"system\sencoding"\sis\sthe\sworst\sof\sthose\sproblem,\swhich\scan\seasily\sbe\ssolved.\sThat's\sthe\spurpose\sof\sthis\sticket.\r\n\r\nThis\scan\sbe\sdemonstrated\sby\sbuilding\sTk,\sbut\sremoving\sthe\sUTF-8\ssetting\sfrom\sthe\smanifest.\sDemo:\r\n<pre>\r\n\s\s\s\s>.\\tclsh90.exe\r\n\s\s\s\s%\sencoding\ssystem\r\n\s\s\s\sutf-8\r\n\s\s\s\s%\sexit\r\n\s\s\s\s>.\\wish90.exe\r\n\s\s\s\s%\sencoding\ssystem\r\n\s\s\s\scp1252\r\n\s\s\s\s%\sexit\r\n</pre>\r\n\r\nNote\sthat\sthe\s"tcl90.dll"\sfile\sused\sby\stclsh90\sand\swish90\sis\sidentical\sin\sthis\sexample.\r\n\r\nSince\sthe\sdefault\sencoding\son\sWindows\sstarting\swith\sTcl\s9.0\sis\ssupposed\sto\sbe\sUTF-8,\sthis\scan\sresult\sin\sencoding\sproblems,\swhen\sTcl\sand\sTk\s(in\sthis\sexample)\sare\sexchanging\sfiles.
J foundin 9.0
J is_private 0
J login jan.nijtmans
J priority 5\sMedium
J private_contact 0c50e5320704d174412e57b873d8932de15303e0
J resolution None
J severity Severe
J status Open
J submitter jan.nijtmans
J subsystem 52.\sPortability\sSupport
J title "encoding\ssystem":\s\swrong\sresult\swithout\smanifest
J type Bug
K 8ffd8cabd10e936228f73e082d8d72eb874a2fbe
U jan.nijtmans
Z cece6a9ba6415a8582c160ba8b505383