From ac37765744c73bed92c1a7af26e5d0ddc0734148 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sat, 18 Oct 2014 16:31:10 -0500 Subject: [PATCH] Use user locale at startup. Should fix Unicode paths on Windows. --- es-app/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index c631264d7..401fb6750 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -18,6 +18,7 @@ #include "Settings.h" #include "ScraperCmdLine.h" #include +#include namespace fs = boost::filesystem; @@ -140,6 +141,9 @@ int main(int argc, char* argv[]) unsigned int width = 0; unsigned int height = 0; + std::locale::global(boost::locale::generator().generate("")); + boost::filesystem::path::imbue(std::locale()); + if(!parseArgs(argc, argv, &width, &height)) return 0;