summary refs log tree commit diff
path: root/localedata
diff options
context:
space:
mode:
Diffstat (limited to 'localedata')
-rw-r--r--localedata/ChangeLog6
-rw-r--r--localedata/tests-mbwc/dat_mbrlen.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 316d3c4eb7..b2e9e59671 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-21  Bruno Haible  <haible@clisp.cons.org>
+
+	* tests-mbwc/dat_mbrlen.c (tst_mbrlen_loc): Use a private mbstate_t
+	for some tests, because mbrlen (NULL, 0, &s) does not always put back
+	s into the initial state.
+
 2001-05-14  Andreas Jaeger  <aj@suse.de>
 
 	* locales/ms_MY: Fix entries for Tue and Wednesday.
diff --git a/localedata/tests-mbwc/dat_mbrlen.c b/localedata/tests-mbwc/dat_mbrlen.c
index 4a69833754..3d396c9ea5 100644
--- a/localedata/tests-mbwc/dat_mbrlen.c
+++ b/localedata/tests-mbwc/dat_mbrlen.c
@@ -99,21 +99,15 @@ TST_MBRLEN tst_mbrlen_loc [] = {
       { /*----------------- #01 -----------------*/
 	{
 	  {
-	    { 1, "\317\302",   1,		   0, 0 },
-#ifdef SHOJI_IS_RIGHT
-	    { 0, "",	   0,		   0, 0 },
-#else
-	    /* XXX This test depends on the internal state being empty.
-	       XXX Therefore we must explicitly clean it.  */
-	    { 0, "",	   0,		   0, 1 },
-#endif
-	    { 1, "\317\302",   USE_MBCURMAX,   0, 0 },
+	    { 1, "\317\302",   1,		   1, 1 },
+	    { 0, "",	       0,		   1, 0 },
+	    { 1, "\317\302",   USE_MBCURMAX,	   1, 1 },
 	  }
 	},
 	{
 	  {
 	    { 0,		1, -2,		     },
-	    { 0,		1,  0,		     },
+	    { 0,		1, -1,		     },
 	    { 0,		1,  2,		     },
 	  }
 	}