wxMac 2.8.7: problem reading date of files with unusual chars in file name

Robert Roebling robert at roebling.de
Tue Feb 5 10:37:23 PST 2008


Fulvio Senore wrote:

> I have very little experience with OSX, so I do not know anything about 
> encoding and similar things.
> 
> Anyway, it looks like GetModificationTime() does not work correctly with 
> filenames containing accented letters in OSX. If confirmed, this looks 
> like a bug to me and I think that it would be nice if it were fixed.
> I suppose that I could find a workaround using native calls, but this is 
> against the spirit of wxWidgets.

It is in the spirit of wxWidgets that if you see such a problem,
you just look which call exactly triggers the error and possibly
look into why this happens. This holds even more true if you
write that you can work around it using native calls so you
already know what the correct call would be.

> >> This code works well in Linux and Windows. In OSX, if one or more file 
> >> names contain letters like "èéà°" I receive errors saying:
> >>
> >> "failed to retrieve file times for <file name> (error 2: no such file or 
> >> directory)"

  Robert






More information about the wx-users mailing list