diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-10 02:09:02 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-10 02:09:02 +0000 |
commit | 2b15132f986df6e8dcc2355f6e3e618550d1922b (patch) | |
tree | 353dc8f7cb396266db622345f1e02ec19764f612 /locale/localeinfo.h | |
parent | 5b643faffc5f43402854fdfc2bdd807ce719bbfb (diff) | |
download | glibc-2b15132f986df6e8dcc2355f6e3e618550d1922b.tar glibc-2b15132f986df6e8dcc2355f6e3e618550d1922b.tar.gz glibc-2b15132f986df6e8dcc2355f6e3e618550d1922b.tar.bz2 glibc-2b15132f986df6e8dcc2355f6e3e618550d1922b.zip |
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.
Diffstat (limited to 'locale/localeinfo.h')
-rw-r--r-- | locale/localeinfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |