Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bun makes JShell output bad UTF-8 on Windows #11186

Open
iscas-zac opened this issue May 20, 2024 · 0 comments
Open

Bun makes JShell output bad UTF-8 on Windows #11186

iscas-zac opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working windows An issue that only occurs on Windows

Comments

@iscas-zac
Copy link

What version of Bun is running?

1.1.8

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Type bun or any bun command, and run jshell (version 21)

What is the expected behavior?

JShell should print readable UTF-8, see below

What do you see instead?

PowerShell 7.4.2
Loading personal and system profiles took 916ms.
(base) PS> jshell
|  欢迎使用 JShell -- 版本 21
|  要大致了解该版本, 请键入: /help intro

jshell> /exit
|  再见
(base) PS> bun
Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.1.8+89d25807f)

Usage...
...
(base) PS> jshell
|  娆㈣繋浣跨敤 JShell -- 鐗堟湰 21
|  瑕佸ぇ鑷翠簡瑙h鐗堟湰, 璇烽敭鍏? /help introo

jshell> /exit
|  鍐嶈
(base) PS>

Additional information

I checked my Windows Terminal and JShell, they were still set to UTF-8 after bun ran.

This may also have something to do with the encoding of JShell, since others like ping works fine after bun runs.

I'm no encoding expert, and my environment setting might be broken without my knowing.

@iscas-zac iscas-zac added the bug Something isn't working label May 20, 2024
@Electroid Electroid added the windows An issue that only occurs on Windows label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

2 participants