Deno: bug(windows): prompt() adds "\r" to inputs and doesn't consider the default value

Created on 27 Oct 2020  路  3Comments  路  Source: denoland/deno

to reproduce:

Linux (WSL) | Windows

image

isn't limited to repl

image

bug cli high priority

Most helpful comment

Fixed by #8149

All 3 comments

There is another problem with the prompt, confirm and alert methods... they seem to not print correctly some characters (茫帽玫芒锚卯么没眉, for example)

image

It happens both on the alert/confirm/prompt message and on the return value. This does not happen on console.log, though.

deno 1.5.0
v8 8.7.220.3
typescript 4.0.3

If this is too unrelated to the main problem, I can open a new issue

As #8146 can probably be fixed with something similar to a simple trim method (maybe not?), and the problem I brought with special UTF-8 (or UTF-16?) probably isn't that simple, I'm opening a new issue.

Fixed by #8149

Was this page helpful?
0 / 5 - 0 ratings

Related issues

justjavac picture justjavac  路  3Comments

ry picture ry  路  3Comments

davidbarratt picture davidbarratt  路  3Comments

doutchnugget picture doutchnugget  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments