Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-02-18 20:35:15 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-02-18 20:35:15 +0300
commitf723b60cf21ca708fcdcf1c278f8156a8277782f (patch)
tree678cfe3c524e62efacef12ed514cafd2ff929171 /newlib/libc/locale/timelocal.c
parent90f5de33d5441eaf63bc779a5ee4ab836d6f8e02 (diff)
* libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
members. * libc/locale/timelocal.c (_C_time_local): Set new members to empty strings. * libc/locale/nl_langinfo.c (nl_langinfo): Return values from __get_current_time_locale() for ERA related requests.
Diffstat (limited to 'newlib/libc/locale/timelocal.c')
-rw-r--r--newlib/libc/locale/timelocal.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/newlib/libc/locale/timelocal.c b/newlib/libc/locale/timelocal.c
index 17b9a2350..4c0f50c76 100644
--- a/newlib/libc/locale/timelocal.c
+++ b/newlib/libc/locale/timelocal.c
@@ -92,7 +92,33 @@ static const struct lc_time_T _C_time_locale = {
/* ampm_fmt
* To determine 12-hour clock format time (empty, if N/A)
*/
- "%I:%M:%S %p"
+ "%I:%M:%S %p",
+
+ /* era
+ * Era. This and the following entries are used if the alternative
+ * date format is specified in strftime
+ */
+ "",
+
+ /* era_d_fmt
+ * Era date format used with the %Ex
+ */
+ "",
+
+ /* era_d_t_fmt
+ * Era date/time format (%Ec)
+ */
+ "",
+
+ /* era_t_fmt
+ * Era time format (%EX)
+ */
+ "",
+
+ /* alt_digits
+ * Alternate digits used if %O format prefix is specified
+ */
+ ""
};
struct lc_time_T *