Skip to content

<xlocnum>: Fix grouping for num_get - #3684

Merged
Casey Carter (CaseyCarter) merged 4 commits into
microsoft:mainfrom
frederick-vs-ja:bad-grouping
May 18, 2023
Merged

Casey Carter (CaseyCarter) merged 4 commits into
microsoft:mainfrom
frederick-vs-ja:bad-grouping

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Fixes #1277.

Unblocking one libcxx test:

  • std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp

Also moves the test for non-ending unlimited grouping to the new test file.

I'm not sure when the grouping string is "\0"s which means grouping is not limited:

  • whether "17,,29" can be parsed without setting failbit, and
  • whether "0,x1729" should be parsed as a whole...

Unblocking one libcxx test:
- std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp
@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner May 7, 2023 16:29
Comment thread stl/inc/xlocnum Outdated
Comment thread stl/inc/xlocnum Outdated
Comment thread stl/inc/xlocnum Outdated
Comment thread tests/std/tests/GH_001277_num_get_bad_grouping/test.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@CaseyCarter

Copy link
Copy Markdown
Contributor

Thanks for helping to fix numerous problems in our number-parsing code.

@frederick-vs-ja
A. Jiang (frederick-vs-ja) deleted the bad-grouping branch May 18, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<xlocnum>: We don't match numpunct groups correctly in do_get

4 participants