OpenImageIO/oiio — pull request #352 by brechtvl (2012-05-06 12:35:31+00:00)
Title: Handle UTF-8 file paths on Windows

OpenImageIO currently can't read paths with special characters on Windows. On Linux/Mac passing in UTF-8 paths to fopen(), std::ifstream and similar work fine, but on Windows this fails.

The patch implements a Filesystem::fopen() that accepts UTF-8 paths on Windows as well, which solves most of the problem.

Still weak is:
* DPX/Cineon/Ptex now use filesystem.h, whereas they previously were independent of OIIO itself.
* PNM/PSD still don't work since they use ifstream. As far as I can tell there is no way to pass a file handle to ifstream. I'd like to change those to use fopen/fread/fclose functions, is that reasonable?
* OpenEXR and Field3D will not work, as far as I can tell the only way to make them work is to fix the OpenEXR and HDF5 libraries.

Suggestions?