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



2011/9/26 Jernej Simončič <jernej|s-gmane eternallybored org>:
> Won't that fail on filenames that have characters outside of the active
> codepage instead?

You can use g_win32_locale_filename_from_utf8() to obtain a short
filename (8.3) that will refer to the filename with unrepresentable
characters. You can then use it with "narrow" functions of the Windows
API. This will not work if short filename generation is turned off in
the registry. I don't know whether it's still turned on by default.

Regards, Krzysztof


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