dotnet / dotnet/wpf

RTL Maldivian/Dhivehi (Thaana) text is not displayed correctly in WPF textboxes

Open
#4,074 2 comments 2 reactions 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* Windows version: (`winver`) Windows 10
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/master/README.md#reporting-security-issues-and-security-bugs).



**Problem description:**
When inputting certain right-to-left language scripts in a WPF text box with an English OS, the characters are reversed.

Issue is reproducible with certain right-to-left languages, like Dhivehi/Thaana and Uyghur/Uighur Arabic, but not others like Hebrew and Arabic.

**Actual behavior:**
Reversed text (incorrect)
![image](https://user-images.githubusercontent.com/73407322/105753131-1101ce80-5efd-11eb-8841-6f3fcbc6403f.png)

**Expected behavior:**
Correct Text:
![image](https://user-images.githubusercontent.com/73407322/105753175-1e1ebd80-5efd-11eb-9d13-beb083edd28a.png)

**Minimal repro:**
1. In a simple WPF application, copy the text `ތާނަ` from [Wiki page](https://en.wikipedia.org/wiki/Thaana),
2. Observe that Thaana script is shown reversed
![image](https://user-images.githubusercontent.com/73407322/105753499-a4d39a80-5efd-11eb-8beb-459b2f537a4b.png)

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.