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

.perl should escape invisible/space characters #3694

Closed
p6rt opened this issue Feb 20, 2015 · 5 comments
Closed

.perl should escape invisible/space characters #3694

p6rt opened this issue Feb 20, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 20, 2015

Migrated from rt.perl.org#123889 (status was 'rejected')

Searchable as RT123889$

@p6rt
Copy link
Author

p6rt commented Feb 20, 2015

From @Tux

$ p6 -e'"\x[00A0]".gist.say'
 
$ p6 -e'"\x[00A0]".perl.say'
" "
$ p6 -e'"\x[00A0]"~~/\s/ and "Yes".say'
$ p6 -e'uniprop(chr(0xa0)).say'
Zs
^- indicates whitespace

I don't know why U+200B (ZERO WIDTH SPACE) and U+FEFF (ZERO WIDTH NO-BREAK SPACE)
are not, but I blame the consortium

$ p6 -e'uniprop(chr(0x200b)).say'
Cf
$ p6 -e'uniprop(chr(0xffef)).say'
Cn

U00a0 \N{NO-BREAK SPACE} (Zs, Common, NO-BREAK SPACE, Latin-1 Supplement)
U2002 \N{EN SPACE} (Zs, Common, EN SPACE, General Punctuation)
U2003 \N{EM SPACE} (Zs, Common, EM SPACE, General Punctuation)
:
U200a \N{HAIR SPACE} (Zs, Common, HAIR SPACE, General Punctuation)
U200b \N{ZERO WIDTH SPACE} (Cf, Common, ZERO WIDTH SPACE, General Punctuation)

--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using perl5.00307 .. 5.21 porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/

@p6rt
Copy link
Author

p6rt commented Aug 28, 2015

From @coke

On Fri Feb 20 00​:03​:46 2015, hmbrand wrote​:

$ p6 -e'"\x[00A0]".gist.say'

$ p6 -e'"\x[00A0]".perl.say'
" "
$ p6 -e'"\x[00A0]"~~/\s/ and "Yes".say'
$ p6 -e'uniprop(chr(0xa0)).say'
Zs
^- indicates whitespace

I don't know why U+200B (ZERO WIDTH SPACE) and U+FEFF (ZERO WIDTH NO-
BREAK SPACE)
are not, but I blame the consortium

$ p6 -e'uniprop(chr(0x200b)).say'
Cf
$ p6 -e'uniprop(chr(0xffef)).say'
Cn

U00a0 \N{NO-BREAK SPACE} (Zs, Common, NO-BREAK SPACE, Latin-1
Supplement)
U2002 \N{EN SPACE} (Zs, Common, EN SPACE, General
Punctuation)
U2003 \N{EM SPACE} (Zs, Common, EM SPACE, General
Punctuation)
:
U200a \N{HAIR SPACE} (Zs, Common, HAIR SPACE, General
Punctuation)
U200b \N{ZERO WIDTH SPACE} (Cf, Common, ZERO WIDTH SPACE, General
Punctuation)

Discussed on #perl6, no one spoke up that we should implement this, some consensus that .perl's job is to give us roundtrip-able data, which it does.

http://irclog.perlgeek.de/perl6/2015-08-26#i_11119358

Rejecting ticket, sorry.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 28, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 30, 2015

From @usev6

On [Coke]'s last note, I'm closing this ticket.

@p6rt
Copy link
Author

p6rt commented Aug 30, 2015

@usev6 - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Aug 30, 2015
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