Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7e1837e95581253a8bbea8cb882dfa9074c67f68
Ticket: 2965056fffffffffffffffffffffffffffffffff
Windows build with -DUNICODE
User & Date: nijtmans on 2010-03-07 14:13:29
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "Windows build with -DUNICODE"
  12. type changed to: "RFE"