Unicode neutral characters width #41

Closed
opened 2026-01-30 21:40:23 +00:00 by claunia · 2 comments
Owner

Originally created by @kghost on GitHub (Dec 23, 2017).

As Unicode TR11 suggested, all neutral characters map to halfwidth or narrow characters.

According to EastAsianWidth following characters are neutral:

✖ 0x2716
✚ 0x271A
✭ 0x272D
✹ 0x2739

so they should be halfwidth or narrow, but is rendered full-width in CMD.exe, which is causing terminal disarrangement.

Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16299.125]

Originally created by @kghost on GitHub (Dec 23, 2017). As [Unicode TR11](http://unicode.org/reports/tr11/) suggested, all neutral characters map to halfwidth or narrow characters. According to [EastAsianWidth](http://unicode.org/Public/UNIDATA/EastAsianWidth.txt) following characters are neutral: ✖ 0x2716 ✚ 0x271A ✭ 0x272D ✹ 0x2739 so they should be halfwidth or narrow, but is rendered full-width in CMD.exe, which is causing terminal disarrangement. Your Windows build number: (Type `ver` at a Windows Command Prompt) Microsoft Windows [Version 10.0.16299.125]
Author
Owner

@ExE-Boss commented on GitHub (Sep 25, 2019):

This might be a duplicate of #2066.

@ExE-Boss commented on GitHub (Sep 25, 2019): This might be a duplicate of #2066.
Author
Owner

@zadjii-msft commented on GitHub (Nov 22, 2021):

This looks like it was fixed at some point in the past - unsure when precisely:

printf "foo\u2716bar\nfoo\u271abar\nfoo\u272dbar\nfoo\u2739bar\n"

image

@zadjii-msft commented on GitHub (Nov 22, 2021): This looks like it was fixed at some point in the past - unsure when precisely: ``` printf "foo\u2716bar\nfoo\u271abar\nfoo\u272dbar\nfoo\u2739bar\n" ``` ![image](https://user-images.githubusercontent.com/18356694/142877249-5d9e9541-6623-4ad6-b1ee-ab3f17c993f5.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#41