This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Change named locales in the new codecvt tests


Hi,

in the last days, when running the testsuite on my stock
glibc2.3.1 system (full set of locales, installed with the
standard `make localedata/install-locales' procedure) I have
been bored by the following spurious failures:

FAIL: 22_locale/codecvt/always_noconv/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/always_noconv/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/encoding/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/encoding/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/in/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/in/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/in/wchar_t/7.cc execution test
FAIL: 22_locale/codecvt/in/wchar_t/8.cc execution test
FAIL: 22_locale/codecvt/in/wchar_t/9.cc execution test
FAIL: 22_locale/codecvt/length/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/length/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/length/wchar_t/7.cc execution test
FAIL: 22_locale/codecvt/max_length/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/max_length/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/out/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/out/wchar_t/4.cc execution test
FAIL: 22_locale/codecvt/unshift/wchar_t/3.cc execution test
FAIL: 22_locale/codecvt/unshift/wchar_t/4.cc execution test

I know that the whole approach wrt non-installed locales is
in (positive!) flux, but I would like to change the chosen
names to something actually installed by the last released
version of the library.

Tested x86-linux. Ok?

Paolo.

//////////////
2003-02-07  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/in/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/in/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/in/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
	* testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
	* testsuite/22_locale/codecvt/length/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/length/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/length/wchar_t/7.cc: Likewise.
	* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:
	Changde named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/out/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/out/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
	* testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:
	Change named locale to "es_ES.ISO-8859-15@euro".
	* testsuite/22_locale/codecvt/unshift/wchar_t/4.cc:
	Change named locale to "se_NO.UTF-8".
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc	2003-02-07 23:43:45.000000000 +0100
@@ -32,7 +32,7 @@
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc	2003-02-07 23:44:19.000000000 +0100
@@ -32,7 +32,7 @@
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc	2003-02-07 23:45:25.000000000 +0100
@@ -33,7 +33,7 @@
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
   bool 			test = true;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc	2003-02-07 23:45:47.000000000 +0100
@@ -33,7 +33,7 @@
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
   bool 			test = true;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/3.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc	2003-02-07 23:46:44.000000000 +0100
@@ -102,7 +102,7 @@
   wmemset(i_ref, 0xdeadbeef, size + 1);
   int_type*		ito_next;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/4.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc	2003-02-07 23:47:13.000000000 +0100
@@ -110,7 +110,7 @@
   wmemset(i_ref, 0xdeadbeef, esize + 1);
   int_type*		ito_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/7.cc libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/7.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc	2003-02-07 23:47:28.000000000 +0100
@@ -60,7 +60,7 @@
   wmemset(i_ref, 0xdeadbeef, size + 1);
   int_type*		ito_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/8.cc libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/8.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc	2003-02-07 23:47:38.000000000 +0100
@@ -109,7 +109,7 @@
   wmemset(i_ref, 0xdeadbeef, esize + 1);
   int_type*		ito_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/9.cc libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/in/wchar_t/9.cc	2003-02-06 07:24:20.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc	2003-02-07 23:47:51.000000000 +0100
@@ -111,7 +111,7 @@
   int_type*		ito = i_arr;
   int_type*		ito_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/3.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc	2003-02-07 23:48:31.000000000 +0100
@@ -61,7 +61,7 @@
     "\xff";
   int 			size = strlen(e_lit);
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/4.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc	2003-02-07 23:48:51.000000000 +0100
@@ -100,7 +100,7 @@
   int 			esize = strlen(e_lit);
   int 			isize = wcslen(i_lit);
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/7.cc libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/length/wchar_t/7.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc	2003-02-07 23:49:19.000000000 +0100
@@ -52,7 +52,7 @@
   const ext_type*       efrom_next;
   int 			size = strlen(e_lit);
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc	2003-02-07 23:50:25.000000000 +0100
@@ -30,7 +30,7 @@
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc	2003-02-07 23:50:09.000000000 +0100
@@ -30,7 +30,7 @@
   using namespace std;
   typedef codecvt<wchar_t, char, mbstate_t> 	w_codecvt;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/out/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/out/wchar_t/3.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc	2003-02-07 23:50:56.000000000 +0100
@@ -100,7 +100,7 @@
   memset(e_ref, 0xf0, size + 1);
   ext_type*		eto_next;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/out/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/out/wchar_t/4.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc	2003-02-07 23:51:12.000000000 +0100
@@ -107,7 +107,7 @@
   memset(e_ref, 0xf0, esize + 1);
   ext_type*		eto_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc	2003-02-07 23:52:10.000000000 +0100
@@ -85,7 +85,7 @@
   memset(e_ref, 0xf0, size + 1);
   ext_type*		eto_next;
 
-  locale 		loc ("en_US.ISO-8859-15");
+  locale 		loc ("es_ES.ISO-8859-15@euro");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 
diff -urN libstdc++-v3-orig/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc	2003-02-06 07:24:21.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc	2003-02-07 23:51:52.000000000 +0100
@@ -80,7 +80,7 @@
   memset(e_ref, 0xf0, size + 1);
   ext_type*		eto_next;
 
-  locale 		loc ("en_US.UTF-8");
+  locale 		loc ("se_NO.UTF-8");
   locale::global(loc);
   const w_codecvt* 	cvt = &use_facet<w_codecvt>(loc); 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]