[Issue 17810] Add wcwidth/wcswidth equivalents to std.uni

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 9 00:09:36 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17810

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #1 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Given that this is tied to the terminal, I wouldn't really expect this in
std.uni, which is focused on implementing the Unicode standard, not on
system-specific stuff like this or really anything with how the characters will
actually look like when dispayed. I also don't know if an equivalent is
available on Windows, and in general, we try to have the stuff in Phobos be
crossplatform. So, I'm inclined to think that that these are not appropriate
for std.uni. But regardless of all of that, these functions should have
bindings in druntime so that they can easily be called on the systems that do
have them, and those seem to missing right now, which should be fixed. So, I
think that the appropriate thing would be to just call them directly rather
than doing something in Phobos, but obviously the bindings will have to be
added for that to work.

--


More information about the Digitalmars-d-bugs mailing list