Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gist of a Match should not print null bytes, and maybe other control chars too (say “\0” ~~ /<[\0]>/) #6564

Open
p6rt opened this issue Oct 3, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Oct 3, 2017

Migrated from rt.perl.org#132205 (status was 'new')

Searchable as RT132205$

@p6rt
Copy link
Author

p6rt commented Oct 3, 2017

From @AlexDaniel

<AlexDaniel> m​: say â��\0â�� ~~ /<[\0]>/
<camelia> rakudo-moar fcbd8a​: OUTPUT​: «「â��ï½£â�¤Â»
<AlexDaniel> � did it just print a null byte?
<gfldex> yes

For example, dd is smart enough to print �\0�. I think it's a bad idea to spew out a null byte so easily. But maybe not? What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant