https://issues.dlang.org/show_bug.cgi?id=17810
--- Comment #2 from Jon Degenhardt <[email protected]> --- (In reply to Jonathan M Davis from comment #1) I didn't intend the "POSIX" part of the enhancement request as literally as it came out. The 'width' characteristic part of the unicode standard, and comes with the unicode character database. See: http://unicode.org/reports/tr11/. It is not tied to the terminal or Windows. Exposing the system implementation of 'wcwidth' would of course be environment specific, but implementing it based on the unicode tables would not be. For these reasons, I do think it is legitimate functionality to support in std.uni. At the same time, there is a strong argument that this be considered a low-priority enhancement. My searches didn't find other D users requesting this. And, it's only useful in fixed-width fonts. I'd certainly use it in the code I'm writing, but I'm finding I can get acceptable estimates with the cheap trick of assuming all CJK characters have width two. --
