From 3ed8ab280b3ea0b52d5061a4a36976da232c38ef Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 May 2017 12:53:25 +0100 Subject: [PATCH] And another one. --- src/lib/cross.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/cross.cc b/src/lib/cross.cc index a12db7ca6..831a1a2b2 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -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 -- 2.30.2