[visual-test] enable utf-8 console output for windows
This commit is contained in:
parent
aee8519bac
commit
3012ea43ee
1 changed files with 9 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue