-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
RangeAttribute double parsing issue with hungarian culture #109672
Comments
@check could you share your |
Yes, simply calling |
Here are answers for the questions but not necessary I am saying this should be the correct behavior. So, it looks like this type needs some fixes. Before I answer, just for the record, this type introduced long ago in the PR dotnet/corefx#501.
When creating the RangeAttribute using signature like
When creating Line 211 in d820873
In summary, it looks to me these two issues are bugs in the code. Your workaround looks good to me which creating the |
I discover the behavior of the second issue is already documented RangeAttribute.ConvertValueInInvariantCulture Remarks. Remarks This will leave this issue with one problem which is keep the double parsing consistent regardless of the used constructor. |
Description
The
RangeAttribute
fails to parse the"2,0"
double value, which is a valid hungarian format of the2.0
number even when theConvertValueInInvariantCulture
is set to false.Reproduction Steps
Expected behavior
See the comments in the prevous section.
Actual behavior
See the comments in the prevous section.
Regression?
No response
Known Workarounds
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: