fio icon indicating copy to clipboard operation
fio copied to clipboard

Crash on reading file

Open bubnenkoff opened this issue 9 years ago • 2 comments

It's seems that it's crush on reading file, because it's not-unicode.

See attach. apptest.zip

bubnenkoff avatar Aug 09 '16 07:08 bubnenkoff

Yep, this is definitely a bug. Thanks for the simple repro case.

The UTF decoder seems to be throwing an exception because its not receiving a full UTF sequence from the line splitter. I took a look at std.stdio to see how it handles this. It looks like it detects if a byte is part of a UTF sequence and keeps on reading until it has the full sequence. This might be the way to go. I'll have to look into this more.

jasonwhite avatar Aug 10 '16 05:08 jasonwhite

So it would crush on every UTF file?

bubnenkoff avatar Aug 10 '16 07:08 bubnenkoff