develooper Front page | perl.perl6.users | Postings from April 2020

Re: readchars, seek back, and readchars again

Thread Previous | Thread Next
From:
Elizabeth Mattijsen
Date:
April 24, 2020 20:09
Subject:
Re: readchars, seek back, and readchars again
Message ID:
CA05B625-1E6F-42BF-8431-42BB285BE2FE@dijkmat.nl


> On 24 Apr 2020, at 22:03, Joseph Brenner <doomvox@gmail.com> wrote:
> 
> Thanks, yes I understand unicode and utf-8 reasonably well.
> 
>> So Rakudo has to read the next codepoint to make sure that it isn't a combining codepoint.
> 
>> It is probably faking up the reads to look right when reading ASCII, but failing to do that for wider codepoints.
> 
> I think it'd be the other way around... the idea here would be it's
> doing an extra readchar behind the scenes just in-case there's
> combining chars involved-- so you're figuring there's some confusion
> about the actual point in the file that's being read and the
> abstraction that readchars is supplying?

What does .tell say before and after the readchars?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About