Use user locale at startup. Should fix Unicode paths on Windows.

This commit is contained in:
Aloshi 2014-10-18 16:31:10 -05:00
parent c870caee03
commit ac37765744

View file

@ -18,6 +18,7 @@
#include "Settings.h"
#include "ScraperCmdLine.h"
#include <sstream>
#include <boost/locale.hpp>
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;