Skip Menu |
Report information
Id: 130483
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: samantham [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Date: Mon, 02 Jan 2017 08:44:20 -0800
To: rakudobug [...]
From: Samantha McVey <samantham [...]>
Subject: [UNI] Regex Unicode properties check values before checking property names
Download (untitled) / with headers
text/plain 460b
See test in properties-general.t The test used to pass before, but only because 'space' resolved to Unicode Property 'LF'='space'. Since 5f1e081bad4a4846f2e7a0681af60450e82155c8 or one the commits right before it, this is broken because space no longer means LF=space. #?rakudo.moar TODO "Possible bug in NQP where <:space> does not match, because it checks property VALUES before checking Bool property names"
Download (untitled) / with headers
text/plain 128b
say ' ' ~~ /<:space>/; #> Nil Should return spaces instead. Checking this works fine though: ' '.uniprop-bool('space') #> True
Download (untitled) / with headers
text/plain 510b
Also see this bisectable results: You can see how with the new commit, 'space' and 'White_Space' now resolve to the same property. Before 'space' resolved to the LF property, and magically worked. When this was fixed and 'space' == 'White_Space', it broke. This bug will be considered close when: use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space') #> True and also must work doing: `' ' ~~ /<:space>/; #> 「 」`

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at