diff options
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/command.cc b/common/command.cc index 2167deb9..0de9ccc4 100644 --- a/common/command.cc +++ b/common/command.cc @@ -45,7 +45,15 @@ NEXTPNR_NAMESPACE_BEGIN -CommandHandler::CommandHandler(int argc, char **argv) : argc(argc), argv(argv) { log_streams.clear(); } +CommandHandler::CommandHandler(int argc, char **argv) : argc(argc), argv(argv) +{ + try { + std::locale::global(std::locale("")); + } catch (const std::runtime_error &e) { + // the locale is broken in this system, so leave it as it is + } + log_streams.clear(); +} bool CommandHandler::parseOptions() { |