3

Does this (perldoc unicode) mean that all non-printable characters are control-characters?

\p{Print}

This matches any character that is graphical or blank, except controls.
sid_com
  • 24,137
  • 26
  • 96
  • 187

2 Answers2

4

This will tell you for sure:

diff -U0 \
      <( unichars -au '\P{Print}'   ) \
      <( unichars -au '\p{Control}' ) \
   && echo No differences

unichars comes from Unicode::Tussle

I can't run it before Monday.

ikegami
  • 367,544
  • 15
  • 269
  • 518
  • 1
    `unichars -gas '\P{print}' '\P{control}'` shows that there are two such code points, U+2028 GC=Zl `LINE SEPARATOR` and U+2029 GC=Zp `PARAGRAPH SEPARATOR`. – tchrist Jul 22 '12 at 23:16
  • Thanks. The DB_File dependency of one of the dependencies is problematic. – ikegami Jul 23 '12 at 14:48
1

If invisible whitespace/blank characters are considered printable, then yes, that only leaves control characters as unprintable.

But if you don't consider whitespace/blank characters such as line separator printable, then no.

Esailija
  • 138,174
  • 23
  • 272
  • 326