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.
Created attachment 265657 [details] MWE
Created attachment 265658 [details] Possible patch