-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Culture-Dependent parsing of feet/inches #817
Comments
Thanks for creating a mother of issues. There are two issues I can think of:
As a start, maybe we can list the special strings we expect to be able to parse?
Implementation proposalExample problem: Algorithm:
This should work for everything that Note that we previously supported a similar summing method, but we had to tighten it so we did not allow invalid ordering like |
Two points: First, IIRC default ToString() does not emit number separators, so probably the default Length.ToString() shouldn't, either. That would solve the basic round-trip problem. Round-tripping is only a problem if using the "N" format specifier (or "C", but that is pointless for our case). Second: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
(Creating an issue on this, as the task is now spread over several PRs)
Problem
As already described in PRs #794 #799 and #803, parsing Feet/inches combinations (ie. "7'23") fails for some cultures. This is because the apostrophe may be part of a number (typically as thousands separator) which makes this string ambigous.
To Reproduce
Steps to reproduce the behavior (just an example):
Run the unit tests on a computer that has the locale set to "de-Ch" (sometimes, error depends on the actual char set as number separator)
How should we proceed on this? #799 and #803 are closed, because they produce other side-effects that are equaly undesirable.
cc: @angularsen , @tmilnthorp
The text was updated successfully, but these errors were encountered: