dotnet / dotnet/wpf

WPF minus sign is not correct when using Swedish language,

Open
#11,405 2 comments 0 reactions 0 assignees View on GitHub
External Non-WPF Issue
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### 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:

https://github.com/unicode-org/icu4x/issues/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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.