You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to define a custom format (a format containing digit separators), I couldn't get my number format to parse the string "42.0". After a while I've noticed, that those provided formats, which also contain digit separators, can't parse the same string either. See test case.
When I copy the RUST_LITERAL and CXX17_LITERAL definitions to my main function and comment out the digit_separator, the simple case can be parsed correctly:
Perfect, glad to hear it. Luckily, because of the re-structuring of the digit separator logic, this fix only required patching 3 lines of code, so once I saw this issue, it was quite an easy patch.
Let me know if there are any further issues, I've tried to extensively test functionality but sometimes bugs fall through the cracks.
Description
Trying to define a custom format (a format containing digit separators), I couldn't get my number format to parse the string
"42.0"
. After a while I've noticed, that those provided formats, which also contain digit separators, can't parse the same string either. See test case.Prerequisites
rustc 1.54.0 (a178d0322 2021-07-26)
6.0.0
format
Test case
I would expect all five
println
invocations to printOk(42.0)
. But in the actual output, only the first one is able to parse the number.Additional Context
When I copy the
RUST_LITERAL
andCXX17_LITERAL
definitions to my main function and comment out the digit_separator, the simple case can be parsed correctly:prints
The text was updated successfully, but these errors were encountered: