/pidgin/main: b6f09494adda: cross-win32: hide glib bug of mismat...
lrn1986 at gmail.com
Thu Apr 17 10:14:02 EDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 17.04.2014 18:05, Daniel Atallah wrote:
> I don't think this is going to work correctly - we need to use g_stat
> because it handles mapping the filename to the appropriate encoding
> before calling the native API - internal strings in libpurple are UTF-8
> and are converted to w_char before calling _wstat().
> If you look at
> there's an explanation of what's going on.
> GStatBuf needs to be the 32-bit stat structure (since it's going to call
> _wstat()) - this default behavior for mingw, but not for mingw64 or MSVC.
> gstdio.h has some special handling for msvc, but not (yet?) for mingw64
> (I guess an upstream patch is probably appropriate to fix that).
> If mingw64 is being used for 32-bit builds, we'll need to redefine stat
> to _stat32 before gstdio.h is included or redefine GStatBuf to _stat32
> after the include.
Or just use GFileInfo.
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
-----END PGP SIGNATURE-----
More information about the Devel