[visual-test] enable utf-8 console output for windows

This commit is contained in:
Mathis Logemann 2022-01-27 18:37:19 +01:00
parent aee8519bac
commit 3012ea43ee

View file

@ -31,6 +31,10 @@
#include "cleanup.hpp" // run_cleanup()
#if defined(_WIN32)
#include <windows.h>
#endif
#ifdef MAPNIK_LOG
using log_levels_map = std::map<std::string, mapnik::logger::severity_type>;
@ -105,6 +109,11 @@ runner::renderer_container create_renderers(po::variables_map const & args,
int main(int argc, char** argv)
{
#ifdef _WIN32
SetConsoleCP(CP_UTF8);
SetConsoleOutputCP(CP_UTF8);
#endif
po::options_description desc("visual test runner");
desc.add_options()
("help,h", "produce usage message")