[gdal-dev] Unicode filenames
ari.jolma at gmail.com
Sat Oct 9 03:39:48 EDT 2010
8.10.2010 23:12, Frank Warmerdam kirjoitti:
> Very early in the GDALOpenInfo constructor a call is made to VSIStatExL()
> which should go to VSIWin32FilesystemHandler::Stat() in
> I don't know why this would not happen.
> Thereafter the file is opened with VSIFOpen() which is implemented
> in cpl_vsisimple.cpp and on WIN32 uses _wfopen() on a wchar_t string.
> I presume you are using a visual studio build, not some other windows
> compiler - right?
Ah, it's this again: http://trac.osgeo.org/gdal/ticket/2649
I'm using MinGW, which uses MS runtime and thus _MSC_VER is, IMO, *not*
the correct macro to check, as the wide functions are available in the
runtime, which can be used by other compilers also. Changing the
_MSC_VER test to defined(MSVCRT) in cpl_vsil_win32.cpp and adding
-D__MSVCRT_VERSION__=0x0601 to GDALMake.opt(1) fixes the problem for MinGW.
I'm not sure which would be the correct fix. Does MSVC define
That also seems to make the GTK+ and Perl interface work ok, i.e., a
GTK+ stock file open dialog starts to work for data with skandinavian
characters in the filename. :)
> Best regards,
More information about the gdal-dev