Skip to content

WPF minus sign is not correct when using Swedish language, #11405

@HayanAK

Description

@HayanAK

Description

Minus sign in Swedish is the long one '−' in the charts, while the Swedish keyboard does not have this char writing minus sign on a Swedish keyboard on windows will result in -, save the view model and the render out will be '−', save again and you have a bug.
It's related to the XAML and it's rendering process.
Also .Net dose not understand the long minus as minusSign

related bug reports:

unicode-org/icu4x#7014
https://unicode-org.atlassian.net/browse/CLDR-10779

Reproduction Steps

TextBox -> write minus number -> int property in viewmodel -> binding -> ui long minus -> save again -> value is not a valid number anymore

Expected behavior

the normal minus sign should stay the same

Actual behavior

TextBox -> write minus number -> int property in viewmodel -> binding -> ui long minus -> save again -> value is not a valid number anymore

Regression?

No response

Known Workarounds

No response

Impact

Stuck user.

Configuration

net8.0-windows
Windows display language: English(Sweden)

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions