FAQ

On Sat Nov 28 06:22:27 2015, elizabeth wrote:
[15:04:37] <lizmat> m: Buf.new(0xFE).decode("utf8-c8") # jnthn
might find this interesting
[15:04:38] <+camelia> rakudo-moar 6a45fe: OUTPUT«(signal SEGV)»
[15:08:24] <jnthn> lizmat: Uh, yes...wtf...
[15:08:30] <jnthn> lizmat: Please RT it

I think it’s related to the fact that it starts with a synthetic,
because:

$ 6 'say Buf.new(0xFE,ord(“A”)).decode("utf8-c8")'
Segmentation fault: 11

whereas if it starts with a non-synthetic:

$ 6 'say Buf.new(ord("A"),0xFE).decode("utf8-c8")'
A􏿽xF
Fixed; test in S32-str/utf8-c8.t.

/jnthn

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-compiler @
categoriesperl
postedApr 1, '16 at 5:34p
activeApr 1, '16 at 5:34p
posts1
users1
websiteperl6.org

1 user in discussion

jnthn@jnthn.net via RT: 1 post

People

Translate

site design / logo © 2019 Grokbase