Artifacts Associated With Ticket 634151ffffffffffffffffffffffffffffffffff
Ticket change [ab7037c13b] (rid 101115) by nobody on 2002-11-05 23:10:41:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "obsolete: 8.4.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "37. File System"
- title initialized to: "[file mtime f time] don't work correctly"
- type initialized to: "Bug"
Ticket change [593df38ad6] (rid 117942) by vincentdarley on 2002-11-07 05:34:34:
- assignee changed to: "hobbs"
- 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. - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [7c6595879f] (rid 97073) by vincentdarley on 2002-12-10 01:43:39:
- 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.
- login: "vincentdarley"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "vincentdarley"
- icomment:
Ticket change [7414ade123] (rid 105139) by vincentdarley on 2003-01-08 17:53:12:
- 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.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Add attachment "mtimeDiff.patch" [34de71c69f] (rid 106822) by vincentdarley on 2003-01-08 17:53:12.
Ticket change [19df2a240c] (rid 122871) by vincentdarley on 2003-01-09 17:40:45:
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [df469739d4] (rid 114987) by vincentdarley on 2003-01-09 17:40:46:
- closedate changed to: "2003-01-09T10:40:46"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Tested fix on unix -- works fine, so committed.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"