Commit b6a95741 by Benjamin Kosnik Committed by Benjamin Kosnik

num_put_members_wchar_t.cc (test03): Use _GLIBCPP_HAVE_SETENV.


2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
	_GLIBCPP_HAVE_SETENV.
	* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
	* testsuite/22_locale/collate_members_char.cc (test02): Same.
	* testsuite/22_locale/ctype_members_char.cc (test03): Same.
	* testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/messages_members_char.cc (test02): Same.
	* testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
	* testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
	* testsuite/22_locale/money_put_members_char.cc (test04): Same.
	* testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
	* testsuite/22_locale/num_get_members_char.cc (test03): Same.
	* testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/numpunct_members_char.cc (test02): Same.
	* testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
	* testsuite/22_locale/time_get_members_char.cc (test07): Same.
	* testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
	* testsuite/22_locale/time_put_members_char.cc (test03): Same.
	* testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/num_put_members_char.cc (test03): Same.
	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* config.h.in: Regenerate.

From-SVN: r49191
parent 054117f9
2002-01-24 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
_GLIBCPP_HAVE_SETENV.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
* testsuite/22_locale/collate_members_char.cc (test02): Same.
* testsuite/22_locale/ctype_members_char.cc (test03): Same.
* testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/messages_members_char.cc (test02): Same.
* testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
* testsuite/22_locale/money_put_members_char.cc (test04): Same.
* testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/num_get_members_char.cc (test03): Same.
* testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/numpunct_members_char.cc (test02): Same.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
* testsuite/22_locale/time_get_members_char.cc (test07): Same.
* testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
* testsuite/22_locale/time_put_members_char.cc (test03): Same.
* testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/num_put_members_char.cc (test03): Same.
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
2002-01-23 Loren Rittle <ljrittle@acm.org> 2002-01-23 Loren Rittle <ljrittle@acm.org>
* testsuite/thread/pthread1.cc: New test. * testsuite/thread/pthread1.cc: New test.
......
...@@ -1936,6 +1936,9 @@ dnl ...@@ -1936,6 +1936,9 @@ dnl
dnl GLIBCPP_CONFIGURE_TESTSUITE [no args] dnl GLIBCPP_CONFIGURE_TESTSUITE [no args]
AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [ AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
GLIBCPP_CHECK_SETRLIMIT GLIBCPP_CHECK_SETRLIMIT
# Look for setenv, so that extended locale tests can be performed.
AC_CHECK_FUNCS(setenv)
]) ])
......
...@@ -1948,6 +1948,9 @@ dnl ...@@ -1948,6 +1948,9 @@ dnl
dnl GLIBCPP_CONFIGURE_TESTSUITE [no args] dnl GLIBCPP_CONFIGURE_TESTSUITE [no args]
AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [ AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
GLIBCPP_CHECK_SETRLIMIT GLIBCPP_CHECK_SETRLIMIT
# Look for setenv, so that extended locale tests can be performed.
AC_CHECK_FUNCS(setenv)
]) ])
......
...@@ -498,6 +498,9 @@ ...@@ -498,6 +498,9 @@
/* Define if you have the qfpclass function. */ /* Define if you have the qfpclass function. */
#undef HAVE_QFPCLASS #undef HAVE_QFPCLASS
/* Define if you have the setenv function. */
#undef HAVE_SETENV
/* Define if you have the signbitl function. */ /* Define if you have the signbitl function. */
#undef HAVE_SIGNBITL #undef HAVE_SIGNBITL
......
...@@ -18998,6 +18998,63 @@ EOF ...@@ -18998,6 +18998,63 @@ EOF
echo "$ac_t""$ac_mem_limits" 1>&6 echo "$ac_t""$ac_mem_limits" 1>&6
# Look for setenv, so that extended locale tests can be performed.
for ac_func in setenv
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:19006: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 19011 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
; return 0; }
EOF
if { (eval echo configure:19034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
fi fi
...@@ -19087,13 +19144,13 @@ glibcpp_toolexeclibdir=no ...@@ -19087,13 +19144,13 @@ glibcpp_toolexeclibdir=no
glibcpp_prefixdir=${prefix} glibcpp_prefixdir=${prefix}
echo $ac_n "checking for interface version number""... $ac_c" 1>&6 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
echo "configure:19091: checking for interface version number" >&5 echo "configure:19148: checking for interface version number" >&5
libstdcxx_interface=$INTERFACE libstdcxx_interface=$INTERFACE
echo "$ac_t""$libstdcxx_interface" 1>&6 echo "$ac_t""$libstdcxx_interface" 1>&6
# Process the option --with-gxx-include-dir=<path to include-files directory> # Process the option --with-gxx-include-dir=<path to include-files directory>
echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
echo "configure:19097: checking for --with-gxx-include-dir" >&5 echo "configure:19154: checking for --with-gxx-include-dir" >&5
# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
if test "${with_gxx_include_dir+set}" = set; then if test "${with_gxx_include_dir+set}" = set; then
withval="$with_gxx_include_dir" withval="$with_gxx_include_dir"
...@@ -19117,7 +19174,7 @@ echo "$ac_t""$gxx_include_dir" 1>&6 ...@@ -19117,7 +19174,7 @@ echo "$ac_t""$gxx_include_dir" 1>&6
# Process the option "--enable-version-specific-runtime-libs" # Process the option "--enable-version-specific-runtime-libs"
echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
echo "configure:19121: checking for --enable-version-specific-runtime-libs" >&5 echo "configure:19178: checking for --enable-version-specific-runtime-libs" >&5
# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
if test "${enable_version_specific_runtime_libs+set}" = set; then if test "${enable_version_specific_runtime_libs+set}" = set; then
enableval="$enable_version_specific_runtime_libs" enableval="$enable_version_specific_runtime_libs"
...@@ -19164,7 +19221,7 @@ if test x"$glibcpp_toolexecdir" = x"no"; then ...@@ -19164,7 +19221,7 @@ if test x"$glibcpp_toolexecdir" = x"no"; then
fi fi
echo $ac_n "checking for install location""... $ac_c" 1>&6 echo $ac_n "checking for install location""... $ac_c" 1>&6
echo "configure:19168: checking for install location" >&5 echo "configure:19225: checking for install location" >&5
echo "$ac_t""$gxx_include_dir" 1>&6 echo "$ac_t""$gxx_include_dir" 1>&6
......
...@@ -464,7 +464,7 @@ namespace std ...@@ -464,7 +464,7 @@ namespace std
return *this; return *this;
} }
// 27.6.2.5.4 Character inserters // 27.6.2.5.4 Character inserters.
template<typename _CharT, typename _Traits> template<typename _CharT, typename _Traits>
basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>&
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
...@@ -499,7 +499,7 @@ namespace std ...@@ -499,7 +499,7 @@ namespace std
return __out; return __out;
} }
// Specialization // Specializations.
template <class _Traits> template <class _Traits>
basic_ostream<char, _Traits>& basic_ostream<char, _Traits>&
operator<<(basic_ostream<char, _Traits>& __out, char __c) operator<<(basic_ostream<char, _Traits>& __out, char __c)
...@@ -614,7 +614,7 @@ namespace std ...@@ -614,7 +614,7 @@ namespace std
return __out; return __out;
} }
// Partial specializationss // Partial specializations.
template<class _Traits> template<class _Traits>
basic_ostream<char, _Traits>& basic_ostream<char, _Traits>&
operator<<(basic_ostream<char, _Traits>& __out, const char* __s) operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
......
...@@ -82,6 +82,7 @@ void test01() ...@@ -82,6 +82,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -93,6 +94,7 @@ void test02() ...@@ -93,6 +94,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main () int main ()
......
...@@ -114,6 +114,7 @@ void test01() ...@@ -114,6 +114,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -125,6 +126,7 @@ void test02() ...@@ -125,6 +126,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */ #endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
......
...@@ -132,6 +132,7 @@ void test01() ...@@ -132,6 +132,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -143,6 +144,7 @@ void test02() ...@@ -143,6 +144,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -132,6 +132,7 @@ void test01() ...@@ -132,6 +132,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -143,6 +144,7 @@ void test02() ...@@ -143,6 +144,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -246,6 +246,7 @@ public: ...@@ -246,6 +246,7 @@ public:
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -258,6 +259,7 @@ void test03() ...@@ -258,6 +259,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -100,6 +100,7 @@ void test01() ...@@ -100,6 +100,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -111,6 +112,7 @@ void test03() ...@@ -111,6 +112,7 @@ void test03()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */ #endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
......
...@@ -84,6 +84,7 @@ void test01() ...@@ -84,6 +84,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -95,6 +96,7 @@ void test02() ...@@ -95,6 +96,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -292,6 +292,7 @@ void test03() ...@@ -292,6 +292,7 @@ void test03()
// libstdc++/5280 // libstdc++/5280
void test04() void test04()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -305,6 +306,7 @@ void test04() ...@@ -305,6 +306,7 @@ void test04()
test03(); test03();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -294,6 +294,7 @@ void test03() ...@@ -294,6 +294,7 @@ void test03()
// libstdc++/5280 // libstdc++/5280
void test04() void test04()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -307,6 +308,7 @@ void test04() ...@@ -307,6 +308,7 @@ void test04()
test03(); test03();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -286,6 +286,7 @@ void test03() ...@@ -286,6 +286,7 @@ void test03()
// libstdc++/5280 // libstdc++/5280
void test04() void test04()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -299,6 +300,7 @@ void test04() ...@@ -299,6 +300,7 @@ void test04()
test03(); test03();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -286,6 +286,7 @@ void test03() ...@@ -286,6 +286,7 @@ void test03()
// libstdc++/5280 // libstdc++/5280
void test04() void test04()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -299,6 +300,7 @@ void test04() ...@@ -299,6 +300,7 @@ void test04()
test03(); test03();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -108,6 +108,7 @@ void test01() ...@@ -108,6 +108,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -119,6 +120,7 @@ void test02() ...@@ -119,6 +120,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -109,6 +109,7 @@ void test01() ...@@ -109,6 +109,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -120,6 +121,7 @@ void test02() ...@@ -120,6 +121,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -316,6 +316,7 @@ void test02() ...@@ -316,6 +316,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -328,6 +329,7 @@ void test03() ...@@ -328,6 +329,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -318,6 +318,7 @@ void test02() ...@@ -318,6 +318,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -330,6 +331,7 @@ void test03() ...@@ -330,6 +331,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -294,6 +294,7 @@ void test02() ...@@ -294,6 +294,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -306,6 +307,7 @@ void test03() ...@@ -306,6 +307,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -294,6 +294,7 @@ void test02() ...@@ -294,6 +294,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -306,6 +307,7 @@ void test03() ...@@ -306,6 +307,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -86,6 +86,7 @@ void test01() ...@@ -86,6 +86,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -97,6 +98,7 @@ void test02() ...@@ -97,6 +98,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -84,6 +84,7 @@ void test01() ...@@ -84,6 +84,7 @@ void test01()
// libstdc++/5280 // libstdc++/5280
void test02() void test02()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -95,6 +96,7 @@ void test02() ...@@ -95,6 +96,7 @@ void test02()
test01(); test01();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -679,6 +679,7 @@ void test06() ...@@ -679,6 +679,7 @@ void test06()
// libstdc++/5280 // libstdc++/5280
void test07() void test07()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -695,6 +696,7 @@ void test07() ...@@ -695,6 +696,7 @@ void test07()
test06(); test06();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -679,6 +679,7 @@ void test06() ...@@ -679,6 +679,7 @@ void test06()
// libstdc++/5280 // libstdc++/5280
void test07() void test07()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -695,6 +696,7 @@ void test07() ...@@ -695,6 +696,7 @@ void test07()
test06(); test06();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
...@@ -234,6 +234,7 @@ void test02() ...@@ -234,6 +234,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -246,6 +247,7 @@ void test03() ...@@ -246,6 +247,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
int main() int main()
......
...@@ -236,6 +236,7 @@ void test02() ...@@ -236,6 +236,7 @@ void test02()
// libstdc++/5280 // libstdc++/5280
void test03() void test03()
{ {
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C". // Set the global locale to non-"C".
std::locale loc_de("de_DE"); std::locale loc_de("de_DE");
std::locale::global(loc_de); std::locale::global(loc_de);
...@@ -248,6 +249,7 @@ void test03() ...@@ -248,6 +249,7 @@ void test03()
test02(); test02();
setenv("LANG", oldLANG, 1); setenv("LANG", oldLANG, 1);
} }
#endif
} }
#endif #endif
......
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