Sam Tregar wrote:
> 
> On 19 Sep 2000, Perl6 RFC Librarian wrote:
> 
> > Distinguish packed binary data from printable strings
> 
> What defines a "printable" string?  What if I'm working in an environment
> that can "print" bytes that yours can't?

Usage DWIMishly defines a printable string. As I noted in another thread on this
RFC, I should never have used the word "binary" in the proposal; it has been
excised, with extreme prejudice. 

> Specifically I'm wondering how this proposal handles Unicode.

If the Unicode derives from a source which makes it look like a string that's
meant to be human readable, nothing will change from current (or proposed)
behavior, AFAIK. These are all unalterd:

  $line <IN>;
  $arg = shift @ARGV;
  @help_lines = <DATA>;

Only C<pack> (except the "A" and "U" templates (confession: I forgot about "U"
in v1 of the RFC)), C<read>, C<sysread>, string-context bitwise ops plus
C<select> and C<vec> create "packed strings". If Unicode is commonly acquired or
manipulated by any of those and meant to stay human readable, then there may be
a conflict.

--

-- Tim Conrow         [EMAIL PROTECTED]                           |

Reply via email to