bun icon indicating copy to clipboard operation
bun copied to clipboard

Buffer#toString("binary") regressed

Open SheetJSDev opened this issue 3 years ago • 1 comments

The SheetJS bun test suite started failing due to a regression in Buffer#toString("binary"):

var x = Buffer.from("<?xm", "binary");
console.log(x);
console.log(x.toString("binary"))

Node:

<Buffer 3c 3f 78 6d>
<?xm

Bun 0.1.7:

Uint8Array(4) [ 60, 63, 120, 109 ]
㼼浸

The output matches the utf16le encoding in NodeJS.

The last successful test run was 7 days ago, which could have been 0.1.5 or 0.1.6

SheetJSDev avatar Aug 07 '22 16:08 SheetJSDev

thanks for flagging

Jarred-Sumner avatar Aug 07 '22 19:08 Jarred-Sumner