whateverable icon indicating copy to clipboard operation
whateverable copied to clipboard

Malformed UTF-8

Open AlexDaniel opened this issue 8 years ago • 7 comments

In some cases we get errors like this:

Unhandled exception in code scheduled on thread 20
Malformed UTF-8

The source of it seems to be a Proc::Async from get-output sub.

Logically, one would want to use $proc.stdout(:enc<utf8-c8>) to make it work, but it only corrupts memory.

So the issue is not in whateverable, as I believe. There's something wrong with rakudo and it has to be rakudobugged, but right now I don't know what exactly.

AlexDaniel avatar May 24 '17 16:05 AlexDaniel

Again: https://irclog.perlgeek.de/perl6-dev/2017-06-26#i_14787712

AlexDaniel avatar Jun 26 '17 16:06 AlexDaniel

Should be fixed with https://github.com/rakudo/rakudo/commit/49f555a2fb.

MasterDuke17 avatar Jul 14 '17 14:07 MasterDuke17

Probably not.

<AlexDaniel> greppable6: kill[^-']
*** greppable6 has quit: Remote host closed the connection
Unhandled exception in code scheduled on thread 20
Malformed UTF-8

AlexDaniel avatar Jul 15 '17 05:07 AlexDaniel

link: https://github.com/perl6/whateverable/issues/24

AlexDaniel avatar Sep 02 '17 05:09 AlexDaniel

Still present even after RT #131961, but this time I don't know if rakudo is at fault.

AlexDaniel avatar Sep 05 '17 02:09 AlexDaniel

I think this was resolved in https://github.com/perl6/whateverable/commit/04beb801aba61ee10ba0e0630f406419e8b7c278, tests needed.

AlexDaniel avatar Jun 25 '18 17:06 AlexDaniel

FWIW for tests, one of the examples that was failing:

greppable6: \+\+\$[\W\s] No! It wasn't me! It was the one-armed man! Backtrace: https://gist.github.com/afcbfddf27d18f0aa684db062da7da52

I think the problem in that case was with some weird characters in a module.

AlexDaniel avatar Jun 25 '18 17:06 AlexDaniel