Skip to content
Tcl Source Code Artifact [b9a63bd41e]
Login

Artifact [b9a63bd41e]

Artifact b9a63bd41e15e71d21b204c66d8c79ffa3adf461a8e6dfe71b1fb724e1e8e2a5:

Ticket change [b9a63bd41e] - Ticket [43b065660532eb4a|43b0656605] <i>MS Windows: files with emojis are found by glob but not recognized by file exists or open</i> status still Open with 3 other changes by jan.nijtmans on 2023-09-11 08:25:53.
D 2023-09-11T08:25:53.241
J icomment The\sproblem\sis\s[https://core.tcl-lang.org/tcl/file?name=win/tclWinFile.c&ci=934bc954efa31e2d&ln=3094-3108|here].\sThe\sfunction\sMultiByteToWideChar()\sconverts\sUTF-8\sto\sUTF-16,\sbut\s-\sin\sthis\scase\s-\sthe\sfilename\sis\snot\sin\sUTF-8,\sit's\sCESU-8,\sbecause\sthat's\sthe\sencoding\sused\sinternally\sin\sTcl\s8.6.\r\n\r\nIn\sTcl\s8.7\sand\s9.0,\sTcl\suses\s(modified)\sUTF-8\sin\sstead\sof\sCESU-8,\sthat\sexplains\swhy\sit\sworks\sthere.\sPossible\ssolution,\sconvert\sfrom\sCESU-8\sto\sUTF-8\s(Tcl_UtfToExternal)\sfirst.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 43b065660532eb4a3678e70e9d68daf1b09810ac
U jan.nijtmans
Z fffb5e40a6c1c767da781c3b77cfa994