Re: _wstat on Windows (actually stat stuff in general)



> But which is more likely to happen - user having a filename with foreign
> characters, or user having a symlink (which on Windows can only be created
> by administrators)...
You asked the question slightly incorrectly: which is more likely to happen: a user have a file on their filesystem that their system codepage cannot support or having a symlink. I'd say the latter is more frequent because every single home directory of every user has a bunch of them, whereas if a filesystem has funny characters in its file names there's a much greater chance the system generated them and can therefore read them. Plus I am fairly sure (but not 100%) that MBCS can represent all of the characters UTF-16 can (which is what the _wstat function uses).

Kean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]