strconv: handle unicode minus in ParseFloat #36782
Labels
FeatureRequest
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Called
strconv.ParseFloat
with a negative number in a string denoted by the Unicode minus symbol,−
. See https://play.golang.org/p/NrryLknwcOzWhat did you expect to see?
A Unicode mathematical minus should result in a negative number.
What did you see instead?
The call with a Unicode minus simply errors.
The text was updated successfully, but these errors were encountered: