Skip to content
Tcl Source Code Artifact [7e1837e955]
Login

Artifact [7e1837e955]

Artifact 7e1837e95581253a8bbea8cb882dfa9074c67f68:

Ticket change [7e1837e955] - New ticket [2965056fffffffff|2965056fff] <i>Windows build with -DUNICODE</i>. by nijtmans on 2010-03-07 14:13:29.
D 2010-03-07T14:13:29
J assignee nijtmans
J cmimetype text/plain
J comment This\sissue\sis\sinspired\sby\ssome\sremarks\sby\sKevin\sKenny\sin\sprivate\smail:\n(3)\sI'm\sparticularly\spuzzled\sby\sthe\sway\sthat\stclWinProcs->getTempPath\n\s\s\shas\sbeen\sdefined\sto\saccept\sa\sWCHAR\sstring\srather\sthan\sa\sTCHAR\n\s\s\sstring,\sin\slight\sof\sthe\sfact\sthat\s'asciiProcs'\sstill\sfills\n\s\s\sit\sin\swith\sGetTempPathA.\sThis\sstrikes\sme\sas\sa\stype\n\s\s\smismatch\sthat\scan\sonly\slead\sto\strouble.\n(4)\sI\ssee\snew\scode\sthat\sdoes\sTclpNativeToNormalized\son\sa\sWCHAR\sstring\n\s\s\s(cast\sto\sa\sClientData).\sIs\sit\strue\sthat\s-DUNICODE\sis\snow\sthe\n\s\s\sonly\sconfiguration\swe\ssupport,\sand\sthat\sTCHAR\sand\sWCHAR\sare\n\s\s\salways\sone\sand\sthe\ssame?\s\sIf\sso,\sI\sthoroughly\sapprove,\sbut\n\s\s\sin\sthat\scase,\sI'm\sstill\spuzzled\sby\sasciiProcs.\n\nMy\sconclusion\sis\sthat\sall\sfunctions\sin\stclWinProcs\sshould\shave\nTCHAR\sin\sit's\ssignature,\snot\sWCHAR.\sHowever,\sthis\sleads\sto\nconstructs\slike:\n\s\s\s\sTCHAR\snativeSrcPath[MAX_PATH*2];\nThe\sreason\sfor\sthis\sis\sthat\sthe\sdefault\sbuild\sof\nTcl\sis\sstill\sASCII,\snot\sUNICODE.\n\nSo,\sI\spropose\sto\smake\sUNICODE\sthe\sstandard\nbuild\smethod,\schanging\sthe\sabove\sconstruct\nto:\n\s\s\s\sTCHAR\snativeSrcPath[MAX_PATH];\nStill,\severything\swill\sfunction\sthe\ssame\sas\snow,\nonly\sthe\sright\ssize\sif\sallocated\sfor\sUNICODE,\nwithout\sthe\sneed\sfor\smultiplying\swith\s2\neverywhere.\n\nPatch\supcoming.\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 52.\sPortability\sSupport
J title Windows\sbuild\swith\s-DUNICODE
J type RFE
K 2965056fffffffffffffffffffffffffffffffff
U nijtmans
Z 2fe1c64356f47641e69477cd07918775