Skip to content
Tcl Source Code History Of Ticket 491789ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 491789ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 491789ffffffffffffffffffffffffffffffffff

  1. Ticket change [194a53fd22] (rid 122786) by davygrvy on 2001-12-11 22:37:34:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It is possible to have tclsh on windows get the
      unicode commandline instead of the ansi one.
      GetCommandlineW() exists on all win platforms
      including Win95/OSR2.
      
      Do I change the meaning of argv going into Tcl_Main()
      and now call it clean UTF-8 and change the docs or
      make a new wrapper function (Umm, Tcl_MainEx?) that
      knows a clean argv and have the old one call the new
      one after just doing the conversions?
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "davygrvy"
    9. subsystem initialized to: "44. UTF-8 Strings"
    10. title initialized to: "setargv() don't support unicode cmdline"
    11. type initialized to: "RFE"
  2. Ticket change [f6f95a7eab] (rid 130409) by davygrvy on 2001-12-12 05:37:37:

    1. icomment:
      
      
      File Added - 14535: patch.txt
      
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [e20f7d5171] (rid 87553) by davygrvy on 2001-12-12 06:22:25:

    1. title changed to: "setargv() doesn't support a unicode cmdline"
  4. Ticket change [9546089bf5] (rid 106130) by dgp on 2001-12-12 21:50:22:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "50. Embedding Support"
  5. Ticket change [5ef6cd0569] (rid 115728) by dgp on 2001-12-15 00:09:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Tcl_Main assumes the system encoding for its
      argv[i] arguments.  I'd be reluctant to change
      that.  Is it reasonable to have the Win setargv()
      convert string to the system encoding before passing
      to Tcl_Main, or is that operation lossy?
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [b1ba0f7dc1] (rid 98201) by davygrvy on 2001-12-15 01:00:56:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Yeah, that would lossy and the limit I'm trying to get 
      around.  Without changing the meaning of Tcl_Main's argv[],
      how could we add this change?  I honestly have no use for 
      this change, but the possibility for getting the full 
      spread in unicode is there.  I haven't tested 
      GetCommandLineW() on Win95, but it's doc'd as working.  This
      probably isn't worth the sweat as it's just tclsh.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  7. Ticket change [7af2e86fac] (rid 90428) by dgp on 2001-12-15 01:08:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Only (half-formed) thought I have is to encode the
      argv strings in some non-lossy encoding, then
      somehow trick Tcl_FindExecutable into thinking
      that's the system encoding.  Then finally in the
      appInitProc switching back to the real system encoding.
      Pretty kludgy.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [fcec0996dc] (rid 108321) by davygrvy on 2002-02-23 15:00:26:

    1. closedate changed to: "2002-02-23T08:00:26"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      I don't see a way to impliment this without changing the 
      Tcl_Main sig.  Not good.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "davygrvy"
  9. Ticket change [f3762a0c33] (rid 129722) by dgp on 2002-02-24 09:56:15:

    1. status changed to: "Open"
  10. Ticket change [83fb0924ec] (rid 117472) by dgp on 2002-02-24 09:56:16:

    1. assignee changed to: "nobody"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Rather than close this completely, I'm moving it
      to Feature Requests for further consideration
      down the road.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Postponed"
    6. subsystem changed to: "None"
    7. username: "dgp"
  11. Ticket change [7f9c0acd9c] (rid 97592) by dgp on 2002-02-24 09:57:53:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "50. Embedding Support"
  12. Ticket change [30692b4547] (rid 93250) by davygrvy on 2004-01-29 07:46:46:

    1. assignee changed to: "davygrvy"
  13. Add attachment "patch.txt" [a55fb935da] (rid 110367) by davygrvy on 2004-11-03 02:47:18.

  14. Ticket change [b3560d950c] (rid 124845) by davygrvy on 2004-11-03 02:47:18:

    1. icomment:
      
      
      File Deleted - 14535: 
      
      
      
      File Added - 107390: patch.txt
      
      Logged In: YES 
      user_id=7549
      
      Here is a new patch that doesn't modify the signature of
      Tcl_Main, but moves the body of Tcl_Main to a new
      Tcl_UniMain with the sig of:
      int Tcl_UniMain(int argc, Tcl_UniChar **wargv,
      Tcl_AppInitProc *appInitProc)
      
      This change allows Tcl_Main to just 'upcast' it's argv
      vector to unicode and call Tcl_UniMain and allows a user of
      the API to call Tcl_UniMain directly.  This fixes the long
      standing unicode commandline args problem.
      
      Sticky points are:
      1) We need a new unicode form of Tcl_FindExecutable
      2) maybe the choice of name is better Tcl_WMain and we
      should use the wchar_t type instead to match the declaration
      of microsoft's use of _wmain (not an ANSI feature)?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  15. Ticket change [70b6932a29] (rid 100539) by davygrvy on 2005-11-06 05:47:41:

    1. assignee changed to: "patthoyts"
  16. Ticket change [8911640634] (rid 131972) by nijtmans on 2010-09-16 21:43:07:

    1. assignee changed to: "nijtmans"
    2. icomment:
      Here is a first patch, implementing part of what is suggested here.
      
      It adds a new function Tk_MainExW, which does the
      same as Tk_MainEx, but then using wchar_t in stead
      of char arguments.
      
      winMain.c is not modified yet, but I already hacked
      a modified winMain which uses this Tk_MainExW,
      so I know it works. A clean new winMain.c
      implementation is the next step
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. username: "nijtmans"
  17. Add attachment "491789.patch" [ac087115fd] (rid 101224) by nijtmans on 2010-09-16 21:46:09.

  18. Ticket change [d74f6ac955] (rid 123961) by nijtmans on 2010-09-16 21:46:09:

    1. icomment:
      
      
      File Added - 386839: 491789.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  19. Ticket change [28b63d7b22] (rid 88746) by nijtmans on 2010-10-12 04:51:47:

    1. icomment:
      Now implemented in HEAD, for Tk on MSVC++.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  20. Ticket change [a059fa1681] (rid 96796) by nijtmans on 2010-11-05 05:24:10:

    1. closedate changed to: "2010-11-04T22:24:10"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Implementation complete, for Tcl as well. In HEAD
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"
  21. Ticket change [4fb2347064] (rid 125870) by nijtmans on 2010-11-19 22:34:18:

    1. icomment:
      Well, I thought the implementation was compete, because I
      was satisfied with MSVC++ only. I assumed that for mingw32
      and cygwin this would be impossible, because support for the
      mWinMain/_wmain functions is not built in there.
      
      However, I discovered the existance of mingw-w64, whose guys
      implemented the -municode linker option, which does exactly
      what was required. Therefore my follow-up commit
      (HEAD 2010-11-17), which enhanced configure.in checking
      if there is a workong -municode option. This makes the unicode
      command line compiletely working with the latest mingw-w64
      
      Then, noting that mingw32 and cygwin already have a
      workaround, not thrusting their crt implementation, I
      could use this trick for mingw32 and cygwin as well.
      Why not use the normal WinMain/main entry point,
      but throw away the command and just get it again
      using GetCommandLineW. This way we still can
      get the unicode commandline! That was my
      next follow-up commit (2010-11-18).
      
      So, now it's really complete!
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"