fibjs/fibjs

Fibjs repl can't correctly print '吉' that built from Buffer but node works

forchid opened this issue · 0 comments

Test case

C:\Users\Administrator>fibjs
Welcome to fibjs 0.35.0.
Type ".help" for more information.
> var b = Buffer.from('');
> console.log(b.toString());
��
> .exit

C:\Users\Administrator>node
Welcome to Node.js v16.13.0.
Type ".help" for more information.
> var b = Buffer.from('');
undefined
> console.log(b.toString());
吉
undefined
>