Page MenuHomeFreeBSD

PR240911: mark the "Private Use Area" characters as "graph"
ClosedPublic

Authored by yuripv on Sep 30 2019, 10:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 12:22 AM
Unknown Object (File)
Thu, Oct 31, 2:42 PM
Unknown Object (File)
Oct 6 2024, 7:40 PM
Unknown Object (File)
Oct 5 2024, 1:55 AM
Unknown Object (File)
Oct 4 2024, 7:27 PM
Unknown Object (File)
Oct 4 2024, 2:55 PM
Unknown Object (File)
Oct 1 2024, 10:11 PM
Unknown Object (File)
Oct 1 2024, 8:13 PM
Subscribers

Details

Summary

Apparently, as described in the PR, characters from those ranges are widely used as "printable", mark as them as "graph" as well (as some of those were previously).

Test Plan

Using the reproducer from the PR.

Pre:

$ ./c
alnum:0x400100, cntrl:0x200, ideogram:0x80000, print:0x40000, space:0x4000, xdigit:0x10000, alpha:0x100, digit:0x400, low
er:0x1000, punct:0x2000, special:0x100000, blank:0x20000, graph:0x800, phonogram:0x200000, rune:0xffffff00, upper:0x8000,

Default Locale is: C
Character d 0x64 is in classes: alnum print xdigit alpha lower graph rune
in C locale, iswprint(0x64) = 1
in en_US.UTF-8 locale, iswprint(0x64) = 1
in ja_JP.UTF-8 locale, iswprint(0x64) = 1

Character  0xe0b1 is in classes: cntrl rune
in C locale, iswprint(0xe0b1) = 0
in en_US.UTF-8 locale, iswprint(0xe0b1) = 0
in ja_JP.UTF-8 locale, iswprint(0xe0b1) = 0

Character  0xe0b2 is in classes: cntrl rune
in C locale, iswprint(0xe0b2) = 0
in en_US.UTF-8 locale, iswprint(0xe0b2) = 0
in ja_JP.UTF-8 locale, iswprint(0xe0b2) = 0

Character  0xe0b3 is in classes: cntrl rune
in C locale, iswprint(0xe0b3) = 0
in en_US.UTF-8 locale, iswprint(0xe0b3) = 0
in ja_JP.UTF-8 locale, iswprint(0xe0b3) = 0

Character  0xe0b0 is in classes: cntrl rune
in C locale, iswprint(0xe0b0) = 0
in en_US.UTF-8 locale, iswprint(0xe0b0) = 0
in ja_JP.UTF-8 locale, iswprint(0xe0b0) = 0

Post:

$ ./c
alnum:0x400100, cntrl:0x200, ideogram:0x80000, print:0x40000, space:0x4000, xdigit:0x10000, alpha:0x100, digit:0x400, low
er:0x1000, punct:0x2000, special:0x100000, blank:0x20000, graph:0x800, phonogram:0x200000, rune:0xffffff00, upper:0x8000,

Default Locale is: C
Character d 0x64 is in classes: alnum print xdigit alpha lower graph rune
in C locale, iswprint(0x64) = 1
in en_US.UTF-8 locale, iswprint(0x64) = 1
in ja_JP.UTF-8 locale, iswprint(0x64) = 1

Character  0xe0b1 is in classes: print graph rune
in C locale, iswprint(0xe0b1) = 0
in en_US.UTF-8 locale, iswprint(0xe0b1) = 1
in ja_JP.UTF-8 locale, iswprint(0xe0b1) = 1

Character  0xe0b2 is in classes: print graph rune
in C locale, iswprint(0xe0b2) = 0
in en_US.UTF-8 locale, iswprint(0xe0b2) = 1
in ja_JP.UTF-8 locale, iswprint(0xe0b2) = 1

Character  0xe0b3 is in classes: print graph rune
in C locale, iswprint(0xe0b3) = 0
in en_US.UTF-8 locale, iswprint(0xe0b3) = 1
in ja_JP.UTF-8 locale, iswprint(0xe0b3) = 1

Character  0xe0b0 is in classes: print graph rune
in C locale, iswprint(0xe0b0) = 0
in en_US.UTF-8 locale, iswprint(0xe0b0) = 1
in ja_JP.UTF-8 locale, iswprint(0xe0b0) = 1

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped