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

History Of Ticket 634151ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 634151ffffffffffffffffffffffffffffffffff

  1. Ticket change [ab7037c13b] (rid 101115) by nobody on 2002-11-05 23:10:41:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      when file name contain non ascii characters.
      
      OS - Linux
      
      % glob *
      ótest       (ótest == \u00F3test)
      % file mtime ótest
      1036534240
      % file mtime ótest [file mtime ótest]
      could not set modification time for file "ótest": no
      such file or directory
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "[file mtime f time] don't work correctly"
    11. type initialized to: "Bug"
  2. Ticket change [593df38ad6] (rid 117942) by vincentdarley on 2002-11-07 05:34:34:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Please see these lines in tclIOUtil.c:
      
      /* 
       * utime wants a normalized, NOT native path.  I assume a native
       * version of 'utime' doesn't exist (at least under that
      name) on NT/2000.
       * If a native function does exist somewhere, then we could use:
       * 
       *   return native_utime(Tcl_FSGetNativePath(pathPtr),tval);
       *   
       * This seems rather strange when compared with stat, lstat,
      access, etc.
       * all of which want a native path.
       */
      static int 
      NativeUtime(pathPtr, tval)
          Tcl_Obj *pathPtr;
          struct utimbuf *tval;
      {
      #ifdef MAC_TCL
          long gmt_offset=TclpGetGMTOffset();
          struct utimbuf local_tval;
          local_tval.actime=tval->actime+gmt_offset;
          local_tval.modtime=tval->modtime+gmt_offset;
          return
      utime(Tcl_GetString(Tcl_FSGetNormalizedPath(NULL,pathPtr)),
       &local_tval);
      #else
          return
      utime(Tcl_GetString(Tcl_FSGetNormalizedPath(NULL,pathPtr)),tval);
      #endif
      }
      
      it appears as if on linux there is a native utime, and so
      the code needs changing.  I'm assigning this to Jeff since
      the basic code which didn't use native paths was, I think,
      written by him.
      
      I really don't know what platforms/OSes want native paths
      here.  The same bug will be in all preceding Tcl versions
      which support 'file mtime $f $time', I believe.
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  3. Ticket change [7c6595879f] (rid 97073) by vincentdarley on 2002-12-10 01:43:39:

    1. icomment:
      
      
      File Added - 37207: fileMtime.diff
      
      Logged In: YES 
      user_id=32170
      
      Please find attached a patch to fix this problem.  It
      includes a new test to test for the fix.
      
      Please test on unix and apply to cvs if it works.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "vincentdarley"
  4. Ticket change [7414ade123] (rid 105139) by vincentdarley on 2003-01-08 17:53:12:

    1. icomment:
      
      
      File Deleted - 37207: 
      
      
      
      File Added - 39163: mtimeDiff.patch
      
      Logged In: YES 
      user_id=32170
      
      Updated patch for latest tcl/tk head, and tested again.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Add attachment "mtimeDiff.patch" [34de71c69f] (rid 106822) by vincentdarley on 2003-01-08 17:53:12.

  6. Ticket change [19df2a240c] (rid 122871) by vincentdarley on 2003-01-09 17:40:45:

    1. resolution changed to: "Fixed"
    2. status changed to: "Closed"
  7. Ticket change [df469739d4] (rid 114987) by vincentdarley on 2003-01-09 17:40:46:

    1. closedate changed to: "2003-01-09T10:40:46"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Tested fix on unix -- works fine, so committed.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. username: "vincentdarley"