bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date not parsing full iso-8601


From: Jim Meyering
Subject: Re: date not parsing full iso-8601
Date: Wed, 14 Sep 2005 18:13:03 +0200

Jim Meyering <address@hidden> wrote:
...
> 2005-09-14  Jim Meyering  <address@hidden>
>
>       * strftime.c (my_strftime): Parse the colons of %:::z *after* the
>       optional field width, not before, so we accept %9:z, not %:9z.
>
> 2005-09-14  Jim Meyering  <address@hidden>
>
>       * tests/misc/date (tz-5w, tz-5wf): Test new %:z format with
>       a field width.

On rereading that patch, I just caught this:

2005-09-14  Jim Meyering  <address@hidden>

...
        (my_strftime): Be sure to use L_('x') for literals.

Index: lib/strftime.c
===================================================================
RCS file: /fetish/cu/lib/strftime.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -p -u -r1.90 -r1.91
--- lib/strftime.c      14 Sep 2005 10:02:54 -0000      1.90
+++ lib/strftime.c      14 Sep 2005 16:10:38 -0000      1.91
@@ -647,9 +647,9 @@ my_strftime (CHAR_T *s, size_t maxsize,
         not before, so we accept %9:z, not %:9z.  */
       {
        const CHAR_T *q;
-       for (q = f; *q == ':' && q - f < 3; q++)
+       for (q = f; *q == L_(':') && q - f < 3; q++)
          ; /* empty */
-       if (*q == 'z')
+       if (*q == L_('z'))
          {
            colons = q - f;
            f = q;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]