HomeFreeBSD

locale: more output fixes

Description

locale: more output fixes

  • make abday, day, abmon, mon, am_pm output quoting match linux
  • workaround localeconv() issue for mon_grouping and grouping (PR172215)
  • for other values not available in default locale, output -1 instead of 127 (CHAR_MAX) as returned by localeconv()

With these changes, output of locale and locale -k for all keywords
specified by POSIX exactly matches the linux one.

PR: 237752
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D21599

Details

Provenance
yuripvAuthored on
Reviewer
bapt
Differential Revision
D21599: locale: more output fixes
Parents
rS352213: fw_stub.awk: use @generated tag in generated files
Branches
Unknown
Tags
Unknown