~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/strftime.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1991-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1991-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
2
2
 
3
3
   NOTE: The canonical source of this file is maintained with the GNU C Library.
4
4
   Bugs can be reported to bug-glibc@prep.ai.mit.edu.
40
40
extern char *tzname[];
41
41
#endif
42
42
 
43
 
/* Do multibyte processing if multibytes are supported, unless
 
43
/* Do multibyte processing if multibyte encodings are supported, unless
44
44
   multibyte sequences are safe in formats.  Multibyte sequences are
45
45
   safe if they cannot contain byte sequences that look like format
46
46
   conversion specifications.  The multibyte encodings used by the
289
289
#  define TOLOWER(Ch, L) tolower (Ch)
290
290
# endif
291
291
#endif
292
 
/* We don't use `isdigit' here since the locale dependent
 
292
/* We don't use 'isdigit' here since the locale dependent
293
293
   interpretation is not what we want here.  We only need to accept
294
294
   the arabic digits in the ASCII range.  One day there is perhaps a
295
295
   more reliable way to accept other sets of digits.  */
437
437
#ifdef _NL_CURRENT
438
438
  /* We cannot make the following values variables since we must delay
439
439
     the evaluation of these values until really needed since some
440
 
     expressions might not be valid in every situation.  The `struct tm'
 
440
     expressions might not be valid in every situation.  The 'struct tm'
441
441
     might be generated by a strptime() call that initialized
442
442
     only a few elements.  Dereference the pointers only if the format
443
443
     requires this.  Then it is ok to fail if the pointers are invalid.  */
896
896
          goto do_number_body;
897
897
 
898
898
        do_number_spacepad:
899
 
          /* Force `_' flag unless overridden by `0' or `-' flag.  */
 
899
          /* Force '_' flag unless overridden by '0' or '-' flag.  */
900
900
          if (pad != L_('0') && pad != L_('-'))
901
901
            pad = L_('_');
902
902