Ignore:
Timestamp:
Jan 27, 2017, 4:40:38 PM (8 years ago)
Author:
Silvan Scherrer
Message:

coreutils: update trunk to version 8.26

Location:
coreutils/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coreutils/trunk

  • TabularUnified coreutils/trunk/lib/nl_langinfo.c

    r1648 r1953  
    3535{
    3636  static char buf[2 + 10 + 1];
    37   size_t buflen = 0;
    3837  char const *locale = setlocale (LC_CTYPE, NULL);
    3938  char *codeset = buf;
     
    10099# if GNULIB_defined_T_FMT_AMPM
    101100    case T_FMT_AMPM:
    102       return "%I:%M:%S %p";
     101      return (char *) "%I:%M:%S %p";
    103102# endif
    104103# if GNULIB_defined_ERA
     
    107106         of the form "direction:offset:start_date:end_date:era_name:era_format"
    108107         with an empty string at the end.  */
    109       return "";
     108      return (char *) "";
    110109    case ERA_D_FMT:
    111110      /* The %Ex conversion in strftime behaves like %x if the locale does not
     
    126125      /* The format is not standardized.  In glibc it is a sequence of 10
    127126         strings, appended in memory.  */
    128       return "\0\0\0\0\0\0\0\0\0\0";
     127      return (char *) "\0\0\0\0\0\0\0\0\0\0";
    129128# endif
    130129# if GNULIB_defined_YESEXPR || !FUNC_NL_LANGINFO_YESEXPR_WORKS
    131130    case YESEXPR:
    132       return "^[yY]";
     131      return (char *) "^[yY]";
    133132    case NOEXPR:
    134       return "^[nN]";
     133      return (char *) "^[nN]";
    135134# endif
    136135    default:
     
    164163      }
    165164# ifdef __BEOS__
    166       return "UTF-8";
     165      return (char *) "UTF-8";
    167166# else
    168       return "ISO-8859-1";
     167      return (char *) "ISO-8859-1";
    169168# endif
    170169    /* nl_langinfo items of the LC_NUMERIC category */
     
    179178    case D_T_FMT:
    180179    case ERA_D_T_FMT:
    181       return "%a %b %e %H:%M:%S %Y";
     180      return (char *) "%a %b %e %H:%M:%S %Y";
    182181    case D_FMT:
    183182    case ERA_D_FMT:
    184       return "%m/%d/%y";
     183      return (char *) "%m/%d/%y";
    185184    case T_FMT:
    186185    case ERA_T_FMT:
    187       return "%H:%M:%S";
     186      return (char *) "%H:%M:%S";
    188187    case T_FMT_AMPM:
    189       return "%I:%M:%S %p";
     188      return (char *) "%I:%M:%S %p";
    190189    case AM_STR:
    191190      if (!strftime (nlbuf, sizeof nlbuf, "%p", &tmm))
    192         return "AM";
     191        return (char *) "AM";
    193192      return nlbuf;
    194193    case PM_STR:
    195194      tmm.tm_hour = 12;
    196195      if (!strftime (nlbuf, sizeof nlbuf, "%p", &tmm))
    197         return "PM";
     196        return (char *) "PM";
    198197      return nlbuf;
    199198    case DAY_1:
     
    275274      }
    276275    case ERA:
    277       return "";
     276      return (char *) "";
    278277    case ALT_DIGITS:
    279       return "\0\0\0\0\0\0\0\0\0\0";
     278      return (char *) "\0\0\0\0\0\0\0\0\0\0";
    280279    /* nl_langinfo items of the LC_MONETARY category.  */
    281280    case CRNCYSTR:
     
    312311       TODO: Really use the locale. */
    313312    case YESEXPR:
    314       return "^[yY]";
     313      return (char *) "^[yY]";
    315314    case NOEXPR:
    316       return "^[nN]";
     315      return (char *) "^[nN]";
    317316    default:
    318       return "";
     317      return (char *) "";
    319318    }
    320319}
Note: See TracChangeset for help on using the changeset viewer.