News for hackers. Stuff that matters.
Re:Unicode, Perl 6, and You by Grue3 on Monday December 07, 2015 @03:07PM (#10692283)
>say "नि".codes; # returns 3

How is "नि" 3 codepoints? There is only two: न and ि . Could this be a bug?

Re:Unicode, Perl 6, and You by cygx on Monday December 07, 2015 @04:18PM (#10692789)
Perl6 agrees that it consists of only 2 codepoints:

    say "नि".NFC>>.uniname.perl;
    #=> ("DEVANAGARI LETTER NA", "DEVANAGARI VOWEL SIGN I")
Nothing more serious than a typo in the article would be my guess.
Re:Unicode, Perl 6, and You by cursork on Monday December 07, 2015 @04:13PM (#10692745)
Seems to be a typo?

    $ perl6 -e 'say "नि".codes'
    2
Re:Unicode, Perl 6, and You by EdiX on Monday December 07, 2015 @04:10PM (#10692725)
Hexdumped the html of the webpage, there's only two codepoints here.
Re:Unicode, Perl 6, and You by kamaal on Monday December 07, 2015 @03:21PM (#10692388)
Not sure how to interpret this, are you suggesting the hindi नि should be two code points because when translated to English it is 'Ni'(two letters)?
Re:Unicode, Perl 6, and You by Grue3 on Monday December 07, 2015 @03:47PM (#10692565)
I'm suggesting this string has two Unicode codepoints. I don't know anything about Hindi language or Devanagari script.
Re:Unicode, Perl 6, and You by hotkeys on Monday December 07, 2015 @04:12PM (#10692737)
They were probably using an outdated version of rakudo, the latest version returns 2 as you would expect.