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

Owner: Nobody
Requestors: zefram [at]

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

To: rakudobug [...]
Date: Wed, 6 Jul 2016 16:43:29 +0100
From: Zefram <zefram [...]>
Subject: [LTA] inconsistent whitespace rules re diacritics
Download (untitled) / with headers
text/plain 655b
Does a space-with-diacritic grapheme count as whitespace, for the purposes of the Perl 6 grammar? Sometimes it does, and sometimes it doesn't: Show quoted text
> "<foo \x[308]bar>".EVAL.perl
("foo", "bar") Show quoted text
> "+ \x[308]3".EVAL.perl
===SORRY!=== Error while compiling /home/zefram/tmp/EVAL_1 Prefix + requires an argument, but no valid term found at /home/zefram/tmp/EVAL_1:1 ------> +^ ?3 expecting any of: prefix Show quoted text
> "Q \x[308]foo bar \x[308]".EVAL
===SORRY!=== Error while compiling /home/zefram/tmp/EVAL_2 Whitespace character (0x20) is not allowed as a delimiter at /home/zefram/tmp/EVAL_2:1 ------> Q^ ?foo bar ? I think it should be consistent. -zefram
Download (untitled) / with headers
text/plain 172b
Looks like this is very related to RT #130384. This is somewhat the same problem though one is with degenerates involving whitespace and one with non-whitespace characters.
Download (untitled) / with headers
text/plain 175b
Looking further at this issue, it looks like we are doing things fine. Though this still is LTA since it would be nice if it was revealed that there were combining codepoints.
Download (untitled) / with headers
text/plain 288b
Using q quoting with a space and combining character(s) will now result in the following error: » q ̌(hi) Whitespace character ‘SPACE’ (0x20) with 1 combining character is not allowed as a delimiter at line 2, near " ̌(hi)\n" Commit:

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