Skip to content
Tcl Source Code History Of Ticket ed5be77734b7e0dd
Login

History Of Ticket ed5be77734b7e0dd

Artifacts Associated With Ticket ed5be77734b7e0dd

  1. Ticket change [66eedf3bea] (rid 140807) by oehhar on 2014-12-04 12:43:02:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Serial port names are not detected as such if postpended by ":".
      
      E.g.
      <verbatim>
      % open com1: r+
      couldn't open "com1:": no such file or directory
      % open com1 r+
      file2672fb0
      </verbatim>
      
      This was present in 8.6.2 and was normally fixed in TCL 8.6.3.
      Something went wrong, fix not included, whatever.
      
      Harald
      
    5. foundin initialized to: "8.6.3"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "24. Channel Commands"
    15. title initialized to: "win: "comx:" not recognized as serial port"
    16. type initialized to: "Bug"
  2. Ticket change [083eb208e0] (rid 140810) by oehhar on 2014-12-04 13:15:57:

    1. icomment:
      I have made some additional tests sheding more light ;-)
      
      From release 8.6.3:
         *   tcl86t.exe: does not show the issue
         *   wish86t.exe: has the issue
      
      The same is verified with the bugfix checkin was [f27ce7a1a5] and Tk8.6.3.
      
      So, the issue only arises for wish and not for tclsh.
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  3. Ticket change [903645fd81] (rid 140811) by oehhar on 2014-12-04 13:39:27:

    1. icomment:
      dburns on the chat:
      8.6.2 windows " open com1: w" creates a file with name "com1[]" where [] is a dingbat
      
      The file may not be listed using "glob com1*".
      
      Win XP with a physical com port
      
      This is 8.6.2, so between the revevant patches...
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  4. Ticket change [867b6d20c9] (rid 140812) by jan.nijtmans on 2014-12-04 14:18:15:

    1. icomment:
      Starting with [80d513f9cb4b2e0350b1e822041322cb4330e90f|80d513f9cb4b2e03], unsafe characters (like ':') in filenames are replaced with Unicode character\uf0?? in the native form. This makes those files work transparantly, no matter if they are accessed using win32 tclsh or cygwin tclsh. For more information, see: [https://cygwin.com/cygwin-ug-net/using-specialnames.html]. This fully explains the appearance of the "dingbat". However, when the filename references a serial port, this conversion should not be done, that's what fixed in 8.6.3.
      
      Why this still doesn't work in wish is a big question for me.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [8afa44ec21] (rid 140845) by jan.nijtmans on 2014-12-05 15:47:00:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      I'm able to reproduce it now (even though I don't have com-ports ...).
      
      Somehow the function Tcl_FSGetNativePath() returns a path with ends with the unicode-character 0xf03a in stead of ':'. i.e. the final ':' is not stripped off.
      
      I will investigate this further, finding out which code path is followed to reach this state.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
  6. Ticket change [1d74e1bc5a] (rid 140846) by jan.nijtmans on 2014-12-05 15:48:26:

    1. icomment:
      I'm able to reproduce it now (even though I don't have com-ports ...).
      
      Somehow the function Tcl_FSGetNativePath() returns a path with ends with the unicode-character 0xf03a in stead of ':'. i.e. the final ':' is not stripped off.
      
      I will investigate this further, finding out which code path is followed to reach this state.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  7. Ticket change [1859890a6e] (rid 140847) by jan.nijtmans on 2014-12-05 15:49:09:

    1. icomment:
      I'm able to reproduce it now (even though I don't have com-ports ...).
      
      Somehow the function Tcl_FSGetNativePath() returns a path with ends with the unicode-character 0xf03a in stead of ':'. i.e. the final ':' is not stripped off.
      
      I will investigate this further, finding out which code path is followed to reach this state.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  8. Ticket change [ee6da80d45] (rid 141698) by dgp on 2015-05-01 14:38:44:

    1. icomment: "status?"
    2. login: "dgp"
    3. mimetype: "text/plain"
  9. Ticket change [58ba327960] (rid 141707) by oehhar on 2015-05-06 14:57:41:

    1. icomment:
      I have reverified with tcl8.6.4:
      
      wish 8.6.4:
      <verbatim>
      % set h [open com1: r+]
      couldn't open "com1:": no such file or directory
      % set h [open com1 r+]
      file677a6e8
      </verbatim>
      
      and with tclsh8.6.4:
      <verbatim>
      % set h [open com1: r+]
      file63c988
      % close $h
      % set h [open com1 r+]
      file63d388
      </verbatim>
      
      So the bug is still present when wish is used and not in tclsh.
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  10. Ticket change [2eb520b735] (rid 142206) by oehhar on 2015-06-24 07:11:05:

    1. icomment:
      Discussion with Jan Nijtmans on ETCL:
      
         *   It appears only in the wish console, not when the script is started like 'wish.exe -f script.tcl'
         *   Jan supposes, tat the reason lies in the stdin/stdout magic of the wish console which, by accident, does something with "comx:".
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  11. Ticket change [6712ea336e] (rid 166897) by tomkiti on 2018-10-27 09:11:51:

    1. icomment:
      Any progress on this? It's still not working in 8.6.8. This breaks our code when upgrading from 8.5 to 8.6.
      
    2. login: "tomkiti"
    3. mimetype: "text/plain"
  12. Ticket change [2de55a85f7] (rid 188654) by oehhar on 2020-11-17 16:25:40:

    1. icomment: "Issue still present in TCL 8.6.10"
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  13. Ticket change [55dc8d3f71] (rid 190086) by oehhar on 2020-12-09 16:52:04:

    1. icomment:
      A sister ticket is opened in Tk, as this only shows up in WISH:
      
      [https://core.tcl-lang.org/tk/info/89781ed82e349f97]
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  14. Ticket change [28614bfac1] (rid 190126) by jan.nijtmans on 2020-12-10 12:26:02:

    1. icomment:
      New assumption: In tclWinFile.c, line 3087, a comment sais: "For a reserved device, strip a possible postfix ':'". But in reality, the path given to MultiByteToWideChar() is not null-terminated in this case. That looks, wrong, and might be the cause for this problem.
      
      I'm not on a Windows machine now, I will test this soon, when I can.
      
      If this assumption is true, the fix is here: [cba5e7728d8a6b45]
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "None"
  15. Ticket change [c663762f55] (rid 190129) by oehhar on 2020-12-10 13:10:52:

    1. icomment:
      Great! For me, that fixes the issue.
      
      I have build against tk8.6.10 release with MS-VC6 on Windows 32 bit.
      
      The issue you found looks like a more general issue in the native path machinery.
      
      Thank you, great,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Pending"
    6. username: "oehhar"
  16. Ticket change [e09ddcc1d6] (rid 190134) by jan.nijtmans on 2020-12-10 13:39:29:

    1. closedate changed to: "2459194.06908588"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Thanks for testing! Yes, it was a general issue in the native path machinery. A situation in which a WCHR string was not NULL-terminated, that's what made this so difficult to track down.
      
      Anyway, it will be finally (after 6 years!) fixed in Tcl 8.6.11. Yeah!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"
  17. Ticket change [b201b205ba] (rid 190135) by oehhar on 2020-12-10 13:40:53:

    1. closer changed to: "nobody"
    2. icomment:
      We have two corrections:
      
      1)
      
      3102   3102       MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, nativePathPtr,
        3103         -	    len + 1);
               3103  +	    len + 2);
      
      2)
      
               3104  +    nativePathPtr[len] = 0;
      
      I first tested correction (2) which did the job.
      
      Correction 2) feels also ok. The buffer has len+6 size.
      
      Thank you,
      Harald
      
    3. login: "oehhar"
    4. mimetype: "text/x-fossil-wiki"
    5. status changed to: "Pending"
    6. username: "oehhar"
  18. Ticket change [0f0e945078] (rid 190136) by oehhar on 2020-12-10 13:44:24:

    1. closedate changed to: "2459194.07251037"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"