Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Praetorius, Simon
dune-common-extensions
Commits
9f154c8e
Commit
9f154c8e
authored
Jan 01, 2019
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
problem with libcpp resolved
parent
2973c3ef
Pipeline
#1604
failed with stage
in 4 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dune/common/test/strtonumbertest.cc
dune/common/test/strtonumbertest.cc
+3
-3
No files found.
dune/common/test/strtonumbertest.cc
View file @
9f154c8e
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment