And another one.
authorCarl Hetherington <cth@carlh.net>
Sat, 13 May 2017 11:53:25 +0000 (12:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 13 May 2017 11:53:25 +0000 (12:53 +0100)
src/lib/cross.cc

index a12db7ca6126e9c3e49b64e38c49918a5f649c6a..831a1a2b2b0c2e1913646834d420c5e53c67b18c 100644 (file)
@@ -417,7 +417,7 @@ avio_open_boost (AVIOContext** s, boost::filesystem::path file, int flags)
        int const length = (file.string().length() + 1) * 2;
        char* utf8 = new char[length];
        WideCharToMultiByte (CP_UTF8, 0, file.c_str(), -1, utf8, length, 0, 0);
-       int const r = avio_open (s, file.c_str(), flags);
+       int const r = avio_open (s, utf8, flags);
        delete[] utf8;
        return r;
 #else