+2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
+
+ PR libstdc++/6795.
+ * config/os/solaris/solaris2.6/bits/ctype_noninline.h
+ (classic_table): Fix.
+ * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
+
+2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
+
+ * testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
+ _GLIBCPP_USE_WCHAR_T.
+ * testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
+ * testsuite/22_locale/ctype_to_wchar_t.cc: Same.
+ * testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
+
2002-05-26 Carlo Wood <carlo@alinoe.com>
Paolo Carlini <pcarlini@unitus.it>
const ctype_base::mask*
ctype<char>::classic_table() throw()
- { return 0; }
+ { return __ctype; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs)
const ctype_base::mask*
ctype<char>::classic_table() throw()
- { return 0; }
+ { return __ctype_mask; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs)
// XXX This test (test02) is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } }
+#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { };
VERIFY( preLANG == postLANG );
}
}
+#endif
int main()
{
+#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test04();
test05();
+#endif
return 0;
}
#include <vector>
#include <testsuite_hooks.h>
+#ifdef _GLIBCPP_USE_WCHAR_T
// libstdc++/6701
void test01()
{
for (int i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
+#endif
int main()
{
+#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
- return 0;
+#endif
+ return 0;
}
#include <locale>
#include <testsuite_hooks.h>
+#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { };
VERIFY( preLANG == postLANG );
}
}
+#endif
int main()
{
+#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test04();
test05();
+#endif
return 0;
}
#include <vector>
#include <testsuite_hooks.h>
+#ifdef _GLIBCPP_USE_WCHAR_T
void test01()
{
using namespace std;
for (int i = 0; i < narrow.length(); ++i)
VERIFY( wide_chars[i] == wide[i] );
}
+#endif
int main()
{
+#ifdef _GLIBCPP_USE_WCHAR_T
test01();
+#endif
return 0;
}