Skip to content

fix(odf): parse bounded decimal tokens independently of locale - #1085

Merged
andiwand merged 2 commits into
mainfrom
review/67-odf-number-tokens
Oct 5, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/67-odf-number-tokens

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

ODF geometry numbers now use a decimal-token scanner and the existing locale-independent number parser. Decimal points work under a comma-decimal host locale, overflow is rejected, and reading a number no longer copies the remaining arithmetic expression. Adjacent signed numbers and incomplete exponents retain their token boundaries.

Two focused regressions cover locale behavior and token boundaries. Four existing tests now share a locale-restoration guard with the new test, avoiding another duplicate helper. All 93 geometry, quantity, font, and XLS checks pass; no locale tests were skipped.

@andiwand
andiwand force-pushed the review/66-odf-geometry-bounds branch from 3de9f70 to 68a1cc2 Compare October 5, 2026 18:27
Base automatically changed from review/66-odf-geometry-bounds to main October 5, 2026 18:28
andiwand and others added 2 commits October 5, 2026 20:29
Each test file now includes its own header first, so a missing include in
that header still shows. The geometry test includes clocale for setlocale.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/67-odf-number-tokens branch from 8d62f54 to 309c283 Compare October 5, 2026 18:32
@andiwand
andiwand merged commit 26e72c6 into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/67-odf-number-tokens branch October 5, 2026 18:35
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.

1 participant