diff options
author | TAMUKI Shoichi <tamuki@linet.gr.jp> | 2019-01-11 13:46:40 +0900 |
---|---|---|
committer | Rafal Luzynski <digitalfreak@lingonborough.com> | 2019-01-11 23:54:37 +0100 |
commit | 5cbbf01ebe26b84c9c58d4b7f7d2c41038d7c68b (patch) | |
tree | c3c174ea22f3c9ad6197d93f4d8aa4c01bab27a0 /time | |
parent | 0bc9bdf159f43c50ec31e9a1670e2e04b5d4060d (diff) | |
download | glibc-5cbbf01ebe26b84c9c58d4b7f7d2c41038d7c68b.tar.gz glibc-5cbbf01ebe26b84c9c58d4b7f7d2c41038d7c68b.tar.xz glibc-5cbbf01ebe26b84c9c58d4b7f7d2c41038d7c68b.zip |
strftime: Consequently use the "L_" macro with character literals
ChangeLog: * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a missing space after the cast of "_NL_CURRENT".
Diffstat (limited to 'time')
-rw-r--r-- | time/strftime_l.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/time/strftime_l.c b/time/strftime_l.c index 6919749c63..7ba4179de3 100644 --- a/time/strftime_l.c +++ b/time/strftime_l.c @@ -820,7 +820,7 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T *format, if (modifier == L_('O')) goto bad_format; #ifdef _NL_CURRENT - if (! (modifier == 'E' + if (! (modifier == L_('E') && (*(subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ERA_D_T_FMT))) @@ -917,7 +917,7 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T *format, #ifdef _NL_CURRENT if (! (modifier == L_('E') && (*(subfmt = - (const CHAR_T *)_NL_CURRENT (LC_TIME, NLW(ERA_D_FMT))) + (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ERA_D_FMT))) != L_('\0')))) subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(D_FMT)); goto subformat; @@ -1262,7 +1262,7 @@ __strftime_internal (CHAR_T *s, size_t maxsize, const CHAR_T *format, DO_NUMBER (1, tp->tm_wday); case L_('Y'): - if (modifier == 'E') + if (modifier == L_('E')) { #if HAVE_STRUCT_ERA_ENTRY struct era_entry *era = _nl_get_era_entry (tp HELPER_LOCALE_ARG); |