Adds support for utf paths on Windows.
authorAlexander Kuznetsov <kuzsasha@gmail.com>
Tue, 20 Mar 2012 02:17:37 +0000 (02:17 +0000)
committerAlexander Kuznetsov <kuzsasha@gmail.com>
Tue, 20 Mar 2012 02:17:37 +0000 (02:17 +0000)
commitf11a6d3a847e8e18faefd8694373d2f11b5ec802
treeb4bec6dcfd28e3da4fa1e84ee4bd20fa0a21be39
parentdeea1f38b1ec0ccba283abeb63506cbc15e093d5
Adds support for utf paths on Windows.

Not all file formats/calls are supported yet. It will be expended.

Please from now on use BLI_fopen, BLI_* for file manipulations.
For non-windows systems BLI_fopen just calls fopen.
For Windows, the utf-8 string is translated to utf-16 string in order to call UTF version of the function.
66 files changed:
build_files/scons/tools/Blender.py
intern/CMakeLists.txt
intern/SConscript
intern/ghost/CMakeLists.txt
intern/ghost/SConscript
intern/ghost/intern/GHOST_DropTargetWin32.cpp
intern/ghost/intern/GHOST_SystemPathsWin32.cpp
intern/ghost/intern/GHOST_SystemWin32.cpp
intern/ghost/intern/GHOST_WindowWin32.cpp
intern/ghost/intern/GHOST_WindowWin32.h
intern/utfconv/CMakeLists.txt [new file with mode: 0644]
intern/utfconv/SConscript [new file with mode: 0644]
intern/utfconv/utf_winfunc.c [new file with mode: 0644]
intern/utfconv/utf_winfunc.h [new file with mode: 0644]
intern/utfconv/utfconv.c [new file with mode: 0644]
intern/utfconv/utfconv.h [new file with mode: 0644]
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/customdata_file.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/movieclip.c
source/blender/blenkernel/intern/packedFile.c
source/blender/blenkernel/intern/particle_system.c
source/blender/blenkernel/intern/pointcache.c
source/blender/blenkernel/intern/text.c
source/blender/blenlib/BLI_fileops.h
source/blender/blenlib/BLI_winstuff.h
source/blender/blenlib/CMakeLists.txt
source/blender/blenlib/SConscript
source/blender/blenlib/intern/dynlib.c
source/blender/blenlib/intern/fileops.c
source/blender/blenlib/intern/path_util.c
source/blender/blenlib/intern/storage.c
source/blender/blenlib/intern/winstuff.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/runtime.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/armature/reeb.c
source/blender/editors/curve/editfont.c
source/blender/editors/physics/physics_fluid.c
source/blender/editors/space_file/fsmenu.c
source/blender/editors/space_text/text_ops.c
source/blender/imbuf/CMakeLists.txt
source/blender/imbuf/SConscript
source/blender/imbuf/intern/bmp.c
source/blender/imbuf/intern/cineon/cineonlib.c
source/blender/imbuf/intern/cineon/dpxlib.c
source/blender/imbuf/intern/cineon/logImageLib.c
source/blender/imbuf/intern/indexer.c
source/blender/imbuf/intern/iris.c
source/blender/imbuf/intern/jp2.c
source/blender/imbuf/intern/jpeg.c
source/blender/imbuf/intern/png.c
source/blender/imbuf/intern/radiance_hdr.c
source/blender/imbuf/intern/readimage.c
source/blender/imbuf/intern/targa.c
source/blender/imbuf/intern/thumbs.c
source/blender/imbuf/intern/thumbs_blend.c
source/blender/imbuf/intern/util.c
source/blender/modifiers/intern/MOD_fluidsim_util.c
source/blender/python/intern/bpy_interface.c
source/blender/render/intern/source/voxeldata.c
source/blender/windowmanager/CMakeLists.txt
source/blender/windowmanager/SConscript
source/blender/windowmanager/intern/wm_files.c
source/creator/CMakeLists.txt
source/creator/creator.c