Skip to content

Port from main to RB-2.1 - Implement locale-agnostic number parsing (#1496)#1548

Merged
hodoulp merged 1 commit into
RB-2.1from
adsk_contrib/integration_21_16
Dec 9, 2021
Merged

Port from main to RB-2.1 - Implement locale-agnostic number parsing (#1496)#1548
hodoulp merged 1 commit into
RB-2.1from
adsk_contrib/integration_21_16

Conversation

@hodoulp

@hodoulp hodoulp commented Dec 9, 2021

Copy link
Copy Markdown
Member

This commit adds support for parsing numbers without being influenced by
the current system locale. We implement a from_chars
shim that forwards the call to strto*_l along with a statically
initialized locale constant.

Fixes #297
Fixes #379
Fixes #1322

Co-Authored-By: Patrick Hodoul Patrick.Hodoul@autodesk.com

Signed-off-by: amyspark 13498015+amyspark@users.noreply.github.com

This commit adds support for parsing numbers without being influenced by
the current system locale. We implement a from_chars
shim that forwards the call to strto*_l along with a statically
initialized locale constant.

Fixes #297
Fixes #379
Fixes #1322

Co-Authored-By: Patrick Hodoul <Patrick.Hodoul@autodesk.com>

Signed-off-by: amyspark <13498015+amyspark@users.noreply.github.com>
@hodoulp hodoulp merged commit 6c8cf83 into RB-2.1 Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants