Commit 9f154c8e authored by Praetorius, Simon's avatar Praetorius, Simon

problem with libcpp resolved

parent 2973c3ef
Pipeline #1604 failed with stage
in 4 minutes and 28 seconds
......@@ -184,11 +184,11 @@ int main()
value = 1.5;
std::setlocale(LC_NUMERIC, "C");
setlocale(LC_NUMERIC, "C");
T val0 = strTo<T>("1.5");
test.check(cmp(value, val0), "Locale_C");
char* new_loc = std::setlocale(LC_NUMERIC, "de_DE.UTF-8");
char* new_loc = setlocale(LC_NUMERIC, "de_DE.UTF-8");
if (new_loc) {
T val1 = strTo<T>("1,5");
test.check(cmp(value, val1), "Locale_de_DE");
......@@ -196,7 +196,7 @@ int main()
std::cout << "### skipped locale de_DE.UTF-8 test\n";
}
std::setlocale(LC_NUMERIC, "C");
setlocale(LC_NUMERIC, "C");
bool exception = false;
try {
T val2 = strTo<T>("1,5");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment