aboutsummaryrefslogtreecommitdiff
path: root/localedata/tst-strptime.c
diff options
context:
space:
mode:
authorAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 20:41:36 +0200
committerAndreas Jaeger <jaegerandi@gmail.com>2012-05-21 20:41:36 +0200
commit5fefb43629b36b143c9ac100b89408a2cbeed3a8 (patch)
treeb19725b9fd5391e463e761fe2d6aef4261b22b58 /localedata/tst-strptime.c
parentd8e272abb32d1788f6a95ae5128b2e2441b840e3 (diff)
downloadglibc-5fefb43629b36b143c9ac100b89408a2cbeed3a8.tar
glibc-5fefb43629b36b143c9ac100b89408a2cbeed3a8.tar.gz
glibc-5fefb43629b36b143c9ac100b89408a2cbeed3a8.tar.bz2
glibc-5fefb43629b36b143c9ac100b89408a2cbeed3a8.zip
[BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
* iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider inptr and inend for must_buffer_ch. * wcsmbs/tst-mbsnrtowcs.c: Remove file. * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs. * stdio-common/Makefile (tests): Remove bug15. (bug15-ENV): Remove macro. * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1 anymore. localedata: * SUPPORTED: Remove vi_VN.TCVN/TCVN5712-1. * tst-strptime.c: Remove, we do not support vi_VN.TCVN5712-1 anymore. * Makefile (LOCALES): Remove vi_VN.TCVN5712-1 from list. (tests): Remove tst-strptime.
Diffstat (limited to 'localedata/tst-strptime.c')
-rw-r--r--localedata/tst-strptime.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/localedata/tst-strptime.c b/localedata/tst-strptime.c
deleted file mode 100644
index bc2c7f1b64..0000000000
--- a/localedata/tst-strptime.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <locale.h>
-#include <time.h>
-#include <stdio.h>
-#include <string.h>
-
-static int
-do_test (void)
-{
- int result = 0;
-
- if (setlocale (LC_ALL, "vi_VN.TCVN5712-1") == NULL)
- {
- puts ("cannot set locale");
- return 1;
- }
- struct tm tm;
- memset (&tm, '\0', sizeof (tm));
- /* This is November in Vietnamese encoded using TCVN5712-1. */
- static const char s[] = "\
-\x54\x68\xb8\x6e\x67\x20\x6d\xad\xea\x69\x20\x6d\xe9\x74\0";
- char *r = strptime (s, "%b", &tm);
- printf ("r = %p, r-s = %tu, tm.tm_mon = %d\n", r, r - s, tm.tm_mon);
- result = r == NULL || r - s != 14 || tm.tm_mon != 10;
-
- if (setlocale (LC_ALL, "ja_JP.UTF-8") == NULL)
- {
- puts ("cannot set locale");
- return 1;
- }
- static const char s2[] = "\
-\x32\x35\x20\x30\x36\x20\xe5\xb9\xb3\xe6\x88\x90\x32\x30\0";
- memset (&tm, '\0', sizeof (tm));
- r = strptime (s2, "%d %m %EC%Ey", &tm);
- printf ("\
-r = %p, r-s2 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\n",
- r, r - s2, tm.tm_mday, tm.tm_mon, tm.tm_year);
- result |= (r == NULL || r - s2 != 14 || tm.tm_mday != 25 || tm.tm_mon != 5
- || tm.tm_year != 108);
-
- static const char s3[] = "\
-\x32\x35\x20\x30\x36\x20\xe5\xb9\xb3\xe6\x88\x90\x32\x30\xe5\xb9\xb4\0";
- memset (&tm, '\0', sizeof (tm));
- r = strptime (s3, "%d %m %EY", &tm);
- printf ("\
-r = %p, r-s3 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\n",
- r, r - s3, tm.tm_mday, tm.tm_mon, tm.tm_year);
- result |= (r == NULL || r - s3 != 17 || tm.tm_mday != 25 || tm.tm_mon != 5
- || tm.tm_year != 108);
-
- return result;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"