From 8833066b122427710a9e14a888ce6cfa862332d3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 31 Jul 2007 17:46:17 +0000 Subject: Updated to fedora-glibc-20070731T1624 --- localedata/ChangeLog | 12 ++++++++++++ localedata/Makefile | 3 ++- localedata/locales/ar_SA | 16 ++++++++-------- localedata/locales/dz_BT | 2 +- localedata/tst-strptime.c | 23 +++++++++++++++++++++++ 5 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 localedata/tst-strptime.c (limited to 'localedata') diff --git a/localedata/ChangeLog b/localedata/ChangeLog index 301eabaa04..7a7a62fa2f 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,15 @@ +2007-07-16 Jakub Jelinek + + * locales/ar_SA (d_t_fmt, d_fmt, t_fmt, t_fmt_ampm): Replace %.1d + with supported %e and %.1H with %k. + * locales/dz_BT (t_fmt): Remove whitespace between % and H. + +2007-07-10 Ulrich Drepper + + [BZ #4773] + * Makefile: Add rules to build and run tst-strptime. + * tst-strptime.c: New file. + 2007-05-07 Ulrich Drepper * locales/as_IN: Fix currency_symbol, abday for Sunday, abmon for diff --git a/localedata/Makefile b/localedata/Makefile index 6b9ce6531a..f599cff6eb 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -93,7 +93,7 @@ locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl \ tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \ tst-leaks tst-mbswcs6 tst-xlocale1 tst-xlocale2 bug-usesetlocale \ - tst-strfmon1 tst-sscanf + tst-strfmon1 tst-sscanf tst-strptime ifeq (yes,$(build-shared)) ifneq (no,$(PERL)) tests: $(objpfx)mtrace-tst-leaks @@ -285,6 +285,7 @@ tst-mbswcs6-ENV = $(TEST_MBWC_ENV) tst-xlocale1-ENV = $(TEST_MBWC_ENV) tst-xlocale2-ENV = $(TEST_MBWC_ENV) tst-strfmon1-ENV = $(TEST_MBWC_ENV) +tst-strptime-ENV = $(TEST_MBWC_ENV) tst-setlocale-ENV = LOCPATH=$(common-objpfx)localedata LC_ALL=ja_JP.EUC-JP diff --git a/localedata/locales/ar_SA b/localedata/locales/ar_SA index f41190d521..81d8cbf020 100644 --- a/localedata/locales/ar_SA +++ b/localedata/locales/ar_SA @@ -294,16 +294,16 @@ END LC_NUMERIC % Set up the LC_TIME category -% d_t_fmt "%A %.1d %B %Y %.1H:%M:%S" -% d_fmt "%A %.1d %B %Y" -% t_fmt "%.1H:%M:%S" -% t_fmt_ampm "%.1H:%M:%S" +% d_t_fmt "%A %e %B %Y %k:%M:%S" +% d_fmt "%A %e %B %Y" +% t_fmt "%k:%M:%S" +% t_fmt_ampm "%k:%M:%S" LC_TIME -d_t_fmt "" -d_fmt "" -t_fmt "" -t_fmt_ampm "" +d_t_fmt "" +d_fmt "" +t_fmt "" +t_fmt_ampm "" day ""; / ""; / ""; / diff --git a/localedata/locales/dz_BT b/localedata/locales/dz_BT index a617e44ab8..596573797e 100644 --- a/localedata/locales/dz_BT +++ b/localedata/locales/dz_BT @@ -1293,7 +1293,7 @@ d_fmt "%y/ % Appropriate time representation "%H:%M:%S" t_fmt "/ -% H/ +%H/ %M%S" % AM/PM signs diff --git a/localedata/tst-strptime.c b/localedata/tst-strptime.c new file mode 100644 index 0000000000..4ee4fcb78d --- /dev/null +++ b/localedata/tst-strptime.c @@ -0,0 +1,23 @@ +#include +#include +#include + +static int +do_test (void) +{ + if (setlocale (LC_ALL, "vi_VN.TCVN5712-1") == NULL) + { + puts ("cannot set locale"); + return 1; + } + struct tm 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"; + char *r = strptime (s, "%b", &tm); + printf ("r = %p, r-s = %ju, tm.tm_mon = %d\n", r, r - s, tm.tm_mon); + return r == NULL || r - s != 14 || tm.tm_mon != 10; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" -- cgit v1.2.3