Bug 18466 – std.format: Wide / Full-width characters as defined by Unicode TR11 (EastAsianWidth.txt) should occupy 2 spaces per character

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-19T06:54:39Z
Last change time
2024-12-01T16:32:49Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#10313 →

Comments

Comment #0 by greensunny12 — 2018-02-19T06:54:39Z
Wide / Full-width characters as defined by Unicode TR11 (EastAsianWidth.txt) should occupy 2 spaces per character, as this is what is done in many monospace terminal applications; See also: https://issues.dlang.org/show_bug.cgi?id=7054 https://github.com/dlang/phobos/pull/6008
Comment #1 by bugzilla — 2021-04-29T19:23:58Z
It might be impossible to reach a satisfying result here: EastAsianWidth.txt defines several characters to be ambiguous. That means, it depends on what ever, if they are considered wide or not. See https://denisbider.blogspot.com/2015/09/when-monospace-fonts-arent-unicode.html for a first impression, which problems will arise, when doing this.
Comment #2 by robert.schadek — 2024-12-01T16:32:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10313 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB