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, Mar 11, 1:20 PM
Unknown Object (File)
Mon, Mar 11, 1:20 PM
Unknown Object (File)
Fri, Mar 8, 1:26 AM
Unknown Object (File)
Jan 6 2024, 10:16 PM
Unknown Object (File)
Jan 6 2024, 10:16 PM
Unknown Object (File)
Jan 4 2024, 12:04 AM
Unknown Object (File)
Dec 20 2023, 1:30 AM
Unknown Object (File)
Sep 18 2023, 7:03 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