• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

New lambda-based xUnit-style unit-testing framework for C++.


Commit MetaInfo

Revisão1697378f44a1a2773e8ce544c8ace4c9a1dc25df (tree)
Hora2020-01-23 21:53:36
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Set the global locale

Mudança Sumário

Diff

diff -r a7ba6f5052e3 -r 1697378f44a1 libcppunitx/driver.cpp
--- a/libcppunitx/driver.cpp Thu Jan 23 21:52:00 2020 +0900
+++ b/libcppunitx/driver.cpp Thu Jan 23 21:53:36 2020 +0900
@@ -24,6 +24,7 @@
2424 #include <bits/cppunitx/driver.h>
2525
2626 #include <cppunitx/framework>
27+#include <locale>
2728 #include <stdexcept>
2829 #include <cstdio>
2930 #include "ltdl_utility.h"
@@ -31,6 +32,7 @@
3132 using std::string;
3233 using std::exception;
3334 using std::runtime_error;
35+using std::locale;
3436 using std::shared_ptr;
3537 using std::fprintf;
3638 using namespace cppunitx;
@@ -83,6 +85,8 @@
8385
8486 int TestDriver::main(const int argc, char **const argv)
8587 {
88+ locale::global(locale(""));
89+
8690 try {
8791 libltdl lib;
8892 // To search the current directory only.