Bug 291227 - C99 localeconv(3) grouping/mon_grouping
Summary: C99 localeconv(3) grouping/mon_grouping
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-26 06:53 UTC by Jose Luis Duran
Modified: 2025-11-26 06:56 UTC (History)
0 users

See Also:


Attachments
MWE (1.36 KB, text/plain)
2025-11-26 06:54 UTC, Jose Luis Duran
no flags Details
Possible patch (1.43 KB, patch)
2025-11-26 06:56 UTC, Jose Luis Duran
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran freebsd_committer freebsd_triage 2025-11-26 06:53:48 UTC
Given the attached MWE program, I would expect the output to be:

C locale
    grouping: [], expected []
mon_grouping: [], expected []

en_US.UTF-8
    grouping: [3], expected [3]
mon_grouping: [3], expected [3]

The program modifies the structure pointed to by the value returned by the localeconv function (7.11.2.1).

Attached is a possible fix.  However, I'd like to confirm that this is indeed what's expected.
Comment 1 Jose Luis Duran freebsd_committer freebsd_triage 2025-11-26 06:54:42 UTC
Created attachment 265657 [details]
MWE
Comment 2 Jose Luis Duran freebsd_committer freebsd_triage 2025-11-26 06:56:12 UTC
Created attachment 265658 [details]
Possible patch