Blender Git Commit Log

Git Commits -> Revision 77f3577

Revision 77f3577 by Tamito Kajiyama (master)
June 23, 2014, 01:07 (GMT)
D605: Fixes for proper handling of wchar_t paths in MinGW.

* Fixed different not-in-sync #ifdef blocks for struct stat variants under Windows.

Comments have been left to indicate the portions of BLI_fileops.h and
BLI_fileops_types.h that need to stay in sync.

* Added BLI_wstat() to de-duplicate #ifdef blocks for stat() variants on Windows.

* Fix for opendir() and associate functions in MinGW not working properly with
non-ASCII, MBCS-compatible paths.

MinGW (FREE_WINDOWS) has opendir() and _wopendir(), and only the
latter accepts a path name of wchar_t type. Rather than messing up with
extra #ifdef's here and there, Blender's own implementations of opendir()
and related functions are used to properly support paths with non-ASCII,
MBCS-compatible characters.

Tested with MSVC 2013 Express, MinGW32 (gcc 4.6.2) and MinGW-w64 (gcc 4.7.1).


Differential Revision: https://developer.blender.org/D605

Reviewed By: campbellbarton

Commit Details:

Full Hash: 77f357728f708dd7a19a62110f34fa9afa5e9213
Parent Commit: 489937e
Lines Changed: +39, -44

5 Modified Paths:

/source/blender/blenlib/BLI_fileops.h (+9, -3) (Diff)
/source/blender/blenlib/BLI_fileops_types.h (+7, -3) (Diff)
/source/blender/blenlib/BLI_winstuff.h (+0, -5) (Diff)
/source/blender/blenlib/intern/storage.c (+15, -32) (Diff)
/source/blender/blenlib/intern/winstuff_dir.c (+8, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021