[Bug 237752] LC_TIME keywords violate POSIX

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 16 16:18:21 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237752

--- Comment #3 from commit-hook at freebsd.org ---
A commit references this bug:

Author: yuripv
Date: Mon Sep 16 16:17:32 UTC 2019
New revision: 352416
URL: https://svnweb.freebsd.org/changeset/base/352416

Log:
  MFC r352138, r352214, r352216:

  locale: handle day, abday, mon, abmon, am_pm keywords

  All of these are defined as mandatory by POSIX.

  While here, mark all non-standard ones as FreeBSD-only as
  other systems (at least, GNU/Linux and illumos) do not handle
  them, so we should not encourage their use.

  - 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()

  PR:           237752

Changes:
_U  stable/12/
  stable/12/etc/mtree/BSD.tests.dist
  stable/12/usr.bin/locale/Makefile
  stable/12/usr.bin/locale/locale.c
  stable/12/usr.bin/locale/tests/
  stable/12/usr.bin/locale/tests/Makefile
  stable/12/usr.bin/locale/tests/k_flag_posix_monetary.out
  stable/12/usr.bin/locale/tests/k_flag_posix_numeric.out
  stable/12/usr.bin/locale/tests/k_flag_posix_time.out
  stable/12/usr.bin/locale/tests/locale_test.sh
  stable/12/usr.bin/locale/tests/no_flags_posix_messages.out
  stable/12/usr.bin/locale/tests/no_flags_posix_monetary.out
  stable/12/usr.bin/locale/tests/no_flags_posix_numeric.out
  stable/12/usr.bin/locale/tests/no_flags_posix_time.out

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-standards mailing list