Fix T45165, OSX quicktime fails with diacriticals in filename.
authorHoward Trickey <howard.trickey@gmail.com>
Fri, 11 Sep 2015 11:32:05 +0000 (07:32 -0400)
committerHoward Trickey <howard.trickey@gmail.com>
Fri, 11 Sep 2015 11:32:05 +0000 (07:32 -0400)
Since Blender internal strings are UTF8, changed the initialization
of the string to use initWithUTF8String from default encoding.
Fix worked on OSX 10.5.5.

source/blender/quicktime/apple/qtkit_export.m

index a4ee398da5d5f490db57f4c9a2774caf2ae85d21..9bc4ec444bba7f6255d81fe73d7506f7a866bf61 100644 (file)
@@ -378,8 +378,7 @@ int start_qt(
        }
        else {
                makeqtstring(rd, name, preview);
-               qtexport->filename = [[NSString alloc] initWithCString:name
-                                                                      encoding:[NSString defaultCStringEncoding]];
+               qtexport->filename = [[NSString alloc] initWithUTF8String:name];
                qtexport->movie = nil;
                qtexport->audioFile = NULL;