Various fixes for non-Latin filenames.
[libdcp.git] / src / certificates.cc
index f23dbc5d413216909d900df664c27c9361db8a6d..aa7972a55411d1ec972040347d76196783fb1a82 100644 (file)
@@ -29,6 +29,7 @@
 #include "certificates.h"
 #include "compose.hpp"
 #include "exceptions.h"
+#include "util.h"
 
 using std::list;
 using std::string;
@@ -49,7 +50,7 @@ Certificate::Certificate (boost::filesystem::path filename)
        : _certificate (0)
        , _public_key (0)
 {
-       FILE* f = fopen (filename.c_str(), "r");
+       FILE* f = fopen_boost (filename, "r");
        if (!f) {
                throw FileError ("could not open file", filename);
        }