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

On Mon, 26 Sep 2011 15:25:06 +0200, Kean Johnston wrote:

> 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, 

Actually, I only seem to have them in 32bit installs of Windows 7 - 64bit
installs don't have them in the user profile (they are there in the root of
the drive).

> 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).

MBCS isn't able to represent all the characters (though depending on the
codepage, it does cover a fair amount), but that's not really relevant -
how do you represent тест in CP-1250?

< Jernej Simončič ><><><><>< >

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