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

Owner: Nobody
Requestors: smls75 [at] gmail.com
Cc:
AdminCc:

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



To: Rakudo Bugtracker <rakudobug [...] perl.org>
Date: Wed, 6 Sep 2017 22:19:12 +0200
Subject: [UNI] Str.perl fails to escape certain lone diacritics at the start of the string.
From: Sam S <smls75 [...] gmail.com>
Download (untitled) / with headers
text/plain 1.1k
Some diacritical marks are correctly escaped by `.perl` when they appear at the beginning of the string: ➜ say "\c[COMBINING DIAERESIS]".perl; # "\x[308]" ➜ say "a" ~ "\c[COMBINING DIAERESIS]".perl.EVAL; # ä But the following one is rendered as part of the opening quote's grapheme, causing EVAL to not roundtrip: ➜ say "\c[TELUGU VOWEL SIGN AA]".perl; # "ా" ➜ say "\c[TELUGU VOWEL SIGN AA]".perl.chars; # 2 ➜ say "a" ~ "\c[TELUGU VOWEL SIGN AA]".perl.EVAL; ===SORRY!=== Error while compiling /home/[...]/EVAL_0 Bogus statement at /home/[...]/EVAL_0:1 ------> <BOL>⏏"ా" expecting any of: prefix term Note that both of the marks demonstrated above are in the same Unicode category: ➜ say uniprops "\c[COMBINING DIAERESIS]"; (Mn) ➜ say uniprops "\c[TELUGU VOWEL SIGN AA]"; (Mn) (This bug was found via the following SO answer: https://stackoverflow.com/a/46042910/1160124) --- This is Rakudo version 2017.08-86-gbfee5a1ed built on MoarVM version 2017.08.1-128-gde6dceda implementing Perl 6.c.


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

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