Skip to content
Tcl Source Code History Of Ticket 2965056
Login

History Of Ticket 2965056

Artifacts Associated With Ticket 2965056

  1. Ticket change [7e1837e955] (rid 97348) by nijtmans on 2010-03-07 14:13:29:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nijtmans"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "Windows build with -DUNICODE"
    12. type initialized to: "RFE"
  2. Ticket change [971a47c745] (rid 106449) by dkf on 2010-03-08 16:42:08:

    1. icomment:
      Please give it at least a day or two before committing anything on this, just to give the North American Tclers a chance to comment.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [6c419fd2d8] (rid 128471) by nijtmans on 2010-03-08 19:08:50:

    1. icomment:
      > Please give it at least a day or two before committing anything on this,
      > just to give the North American Tclers a chance to comment.
      
      Sure. Currently, I'm only cleaning up the current mess a little bit :-)
      Then I'll put a patch here before committing anything. This has
      potentially high impact, although I agree fully with Kevin.
      
      This change is NOT meant to phase out Win95/98/ME!
      Everything should work exactly the same when
      compiled with -DUNICODE. However, after this
      change, Tcl compiled without -DUNICODE
      should only be run on Win95/98/ME. Tcl compiled
      with -DUNICODE can run anywhere.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Ticket change [a84a437c01] (rid 98955) by dgp on 2010-03-08 21:44:34:

    1. icomment:
      
      ???
      
      How can you "phase out" something that was abandoned years ago?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [0fa2296999] (rid 94819) by dkf on 2010-03-08 22:04:52:

    1. icomment:
      That was my thought too. We don't (to my knowledge) support any platform that does not use the WCHAR-based interfaces on any version of Tcl that we plan to release in the future. Who uses Win98 or ME any more?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [337b66ab40] (rid 106601) by nijtmans on 2010-03-08 22:52:32:

    1. icomment:
      In that case, my upcoming patch will not meet
      very much resistance.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  7. Ticket change [2276843296] (rid 130753) by dkf on 2010-03-08 23:45:15:

    1. icomment:
      This is sounding really wrong to me, and I think a number of other developers would also rather you did not work in this area. Your comments are just raising lots of red flags. PLEASE DO NOT COMMIT ANYTHING RELATING TO THIS ISSUE WITHOUT SOMEONE ELSE EXPLICITLY AGREEING THAT THE PATCH IS GOOD. Sorry about shouting, but I want to be totally clear here.
      
      Assigning to kbk as he's very sensible.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [a0540adb91] (rid 96790) by dkf on 2010-03-08 23:45:16:

    1. assignee changed to: "kennykb"
  9. Ticket change [264b3c26d9] (rid 88318) by kennykb on 2010-03-09 10:05:23:

    1. icomment:
      I'm afraid that I'm really confused by the series of changes, except that they have been leaving a steady trail of broken builds.
      
      In any case, let me agree: Win9x is dead. Bury it. 
      
      But I'd also think that we'd have no need of -DUNICODE or -DMBCS. Just call the ...W interfaces directly (or, I suppose the ...A interfaces if for some reason we need ANSI instead of Unicode). And ... whatever tclWinProcs does, it's working. Don't mess with it. Just steadily replace calls through its pointers with direct calls to the appropriate API's. Don't bother trying to clean it up when the long-term objective is to eliminate it entirely.
      
      And similarly, a project to support MSLU seems misguided. Such an effort would have made sense back in 2002 or so, which is when I recall first proposing it.  But back then, Win9x was still alive.  Today, MSLU is a waste of effort.
      
      Assigning back to nijtmans, in lieu of marking 'Closed/Rejected'
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  10. Ticket change [d2a410f1d3] (rid 113564) by kennykb on 2010-03-09 10:05:27:

    1. assignee changed to: "nijtmans"
  11. Ticket change [b16c632ed3] (rid 98138) by nijtmans on 2010-03-20 18:52:44:

    1. icomment:
      >Assigning back to nijtmans, in lieu of marking 'Closed/Rejected'
      
      Here are two examples, tclWinSock.c and tclWinNotify.c, which
      show how it should be done. In stead of using WCHAR, and calling
      the ..W() functions directly, I prefer much more to use TCHAR
      and compile with -DUNICODE -D_UNICODE. It makes the
      code more readable, and it encourages developers to
      use the UNICODE interface, instead of falling in the trap
      of using the ASCII interface without it being visible in the code.
      
      So, here is the first small patch.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  12. Ticket change [b319f90cfa] (rid 98461) by nijtmans on 2010-03-20 18:54:06:

    1. icomment:
      
      
      File Added - 367518: 2965056-1.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  13. Add attachment "2965056-1.patch" [ad9f7ea878] (rid 101502) by nijtmans on 2010-03-20 18:54:06.

  14. Ticket change [5aed155e58] (rid 118230) by nijtmans on 2010-05-04 16:41:23:

    1. icomment:
      Second patch, which still does nothing. It just
      makes sure that tclWinTest.c, tclWinReg.c and
      tclWinDde.c never are compiled in UNICODE
      mode. Eventually, they can, but first let's prove
      that compiling the core library in UNICODE
      mode does not cause ANY source or binary
      incompatibility before going on.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  15. Ticket change [d198ece5fb] (rid 113380) by nijtmans on 2010-05-04 18:00:07:

    1. icomment:
      
      
      File Added - 372779: 2965056-2.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  16. Add attachment "2965056-2.patch" [f49ce751bd] (rid 129949) by nijtmans on 2010-05-04 18:00:07.

  17. Ticket change [4b0a6a034d] (rid 126630) by nijtmans on 2010-08-30 19:13:13:

    1. assignee changed to: "kennykb"
    2. icomment:
      First part checked in HEAD.
      
      Kevin, please evaluate. This patch does some clean-up of
      old Win95-ish constructs (*2 in array allocations). The
      -DUNICODE is necessary to force all API calles which
      don't use the A or W variant, to use the W variant
      by default. I think this is a right step in the
      cleaning up of Tcl, but if you find any problem
      with it feel free to revert ;-)
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "nijtmans"
  18. Ticket change [4a82ad40c1] (rid 126545) by nijtmans on 2012-02-16 04:51:03:

    1. assignee changed to: "nijtmans"
    2. closedate changed to: "2012-02-15T21:51:03"
    3. closer changed to: "nijtmans"
    4. icomment:
      Since this is all done for some time in trunk, let's close it, unless someone wants to evaluate it.
      
      
    5. login: "nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"
    9. username: "nijtmans"
  19. Ticket change [aea843b7f1] (rid 101677) by nijtmans on 2012-06-22 20:02:43:

    1. closedate changed to: "2012-06-22T13:02:43"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "nijtmans"