blob: 228965b8d3556cfdd34b6d4b0d7f7000fd91f2cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- libstdc++-v3/testsuite/lib/libstdc++.exp.orig
+++ libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -902,17 +902,18 @@
set f [open $src "w"]
puts $f "#include <locale>"
puts $f "#include <cstdio>"
- puts $f "using namespace std;"
+ puts $f "using namespace std;"
puts $f "int main (int argc, char** argv)"
puts $f "{"
+ puts $f " const char* mlx = *(argv + 1);"
puts $f " try"
puts $f " {"
- puts $f " locale(*(argv + 1));"
+ puts $f " locale((char*)(mlx));"
puts $f " return 0;"
puts $f " }"
puts $f " catch(...)"
puts $f " {"
- puts $f " printf(\"locale '%s' not supported\\n\", *(argv + 1));"
+ puts $f " printf(\"locale '%s' not supported\\n\", mlx);"
puts $f " return 1;"
puts $f " }"
puts $f "}"
|