assimp/assimp — pull request #194 by henrikbuchholz (2013-11-25 11:32:25+00:00)
Title: Utf8 paths on windows

Fixed problems: (windows only). Opening of files failed if..
- they contained non-ansi UTF8 characeters or
- were longer than 256 characters.

About UTF8 Fix:
To use AssImp in localized products on windows platforms, it is necessary to support files with special characeters. Annoyingly, windows does not support to directly pass UTF8 paths to standard file I/O methods directly, so that existing calls ::fopen failed on windows for paths with special characters.

=>
On Windows-Platform, we now convert from UTF8 to wstring and use the wstring file methods. This made the file I/O work for arbitrary UTF8-paths.

About Long-Paths:
By using ExtendedPath notation in Windows (see code comment line 171 for details), it is possible to access paths beyond the 256 character length limitations. However, this was made impossible by the MAX_PATH restriction in DefaultIOSystem.cpp.
=> For windows, I increased the MAX_PATH value to 8192.