Overview
| Artifact ID: | 7e1837e95581253a8bbea8cb882dfa9074c67f68 |
|---|---|
| Ticket: | 2965056fffffffffffffffffffffffffffffffff
Windows build with -DUNICODE |
| User & Date: | nijtmans on 2010-03-07 14:13:29 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
This issue is inspired by some remarks by Kevin Kenny in private mail: (3) I'm particularly puzzled by the way that tclWinProcs->getTempPath has been defined to accept a WCHAR string rather than a TCHAR string, in light of the fact that 'asciiProcs' still fills it in with GetTempPathA. This strikes me as a type mismatch that can only lead to trouble. (4) I see new code that does TclpNativeToNormalized on a WCHAR string (cast to a ClientData). Is it true that -DUNICODE is now the only configuration we support, and that TCHAR and WCHAR are always one and the same? If so, I thoroughly approve, but in that case, I'm still puzzled by asciiProcs. My conclusion is that all functions in tclWinProcs should have TCHAR in it's signature, not WCHAR. However, this leads to constructs like: TCHAR nativeSrcPath[MAX_PATH*2]; The reason for this is that the default build of Tcl is still ASCII, not UNICODE. So, I propose to make UNICODE the standard build method, changing the above construct to: TCHAR nativeSrcPath[MAX_PATH]; Still, everything will function the same as now, only the right size if allocated for UNICODE, without the need for multiplying with 2 everywhere. Patch upcoming. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "52. Portability Support"
- title changed to: "Windows build with -DUNICODE"
- type changed to: "RFE"