[Bug 225692] iswprint() wrong for some FULL WIDTH characters in UTF-8 locale

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 8 11:05:09 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225692

Yuri Pankov <yuripv at yuripv.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuripv at yuripv.net

--- Comment #14 from Yuri Pankov <yuripv at yuripv.net> ---
There are several issues described in this bug report, let's take a look at
U+2002 first, it is <EN_SPACE>, included in "space" character class, which
localedef(1) does NOT currently identify as "print" character class.

The POSIX locale definition says the following:
--------------------------------------------------------------------------------
print
    Define characters to be classified as printable characters, including the
<space>.

    In the POSIX locale, all characters in class graph shall be included; no
characters in class cntrl shall be included.

    In a locale definition file, characters specified for the keywords upper,
lower, alpha, digit, xdigit, punct, graph, and the <space> are automatically
included in this class. No character specified for the keyword cntrl shall be
specified.
--------------------------------------------------------------------------------

So it doesn't explicitly say anything about "space" here, though it doesn't NOT
explicitly forbid including "space" in the "print" class, and I *think* we can
extend the <space> character being included to the entire "space" character
class.

See review D17467.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list