diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-08-22 17:10:37 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-08-22 17:10:37 +0400 |
commit | 61dddcb800963390b348c977d307bec3620a443a (patch) | |
tree | 32f9451d7c56e637f94bcee014f8872ea91e6c40 /source/blender/imbuf/intern/tiff.c | |
parent | 10b983002f953f88ca84bc418d339a8096e3cef4 (diff) |
Fix part of #32377: TIFF not saving on windows to paths with special characters,
and DDS should not be in the list of file types because we can only load those
currently.
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index 985c575daaa..ac5f5da8a67 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -59,7 +59,9 @@ #include "tiffio.h" - +#ifdef WIN32 +#include "utfconv.h" +#endif /*********************** * Local declarations. * @@ -712,7 +714,13 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags) } else { /* create image as a file */ +#ifdef WIN32 + wchar_t *wname = alloc_utf16_from_8(name, 0); + image = TIFFOpenW(wname, "w"); + free(wname); +#else image = TIFFOpen(name, "w"); +#endif } if (image == NULL) { fprintf(stderr, |