From 2b15132f986df6e8dcc2355f6e3e618550d1922b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Aug 2001 02:09:02 +0000 Subject: Update. * locale/lc-time.c (_nl_parse_alt_digit): New function. * locale/localeinfo.h: Add prototype for it. * time/strptime.c (get_alt_number): Use _nl_parse_alt_digit to get the value. Correct computation of hour for %OI. If no %EC given but %Ey use numeric formular. --- locale/localeinfo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'locale/localeinfo.h') diff --git a/locale/localeinfo.h b/locale/localeinfo.h index 24ddabed71..e7528e9edb 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -205,6 +205,9 @@ extern const char *_nl_get_alt_digit (unsigned int number); /* Similar, but now for wide characters. */ extern const wchar_t *_nl_get_walt_digit (unsigned int number); +/* Parse string as alternative digit and return numeric value. */ +extern int _nl_parse_alt_digit (const char **strp); + /* Postload processing. */ extern void _nl_postload_ctype (void); extern void _nl_postload_time (void); -- cgit v1.2.3