4 ms·
Perl 6 normalizes to NFC by default for everything except filenames: https://docs.perl6.org/language/unicode https://docs.perl6.org/language/unicode As to lelf
by JonathonW 8y ago
Perl 6 normalizes to NFC by default for everything except filenames: https://docs.perl6.org/language/unicode https://docs.perl6.org/language/unicode
As to lelf's 1-character emoji, str.chars returns the number of characters in the string-- it would only return 2 if it returned the number of code units instead (which, the documentation notes, is what currently happens on the JVM).
- lizmat 8y agoPerl 6 actually normalizes to NFG (Normalization Form Grapheme) https://docs.perl6.org/language/glossary#NFG https://docs.perl6.org/language/glossary#NFG