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

Cannot be used on Windows with a username of Chinese characters (maybe or non-ASCII) #25119

Open
chinanewer opened this issue Jan 29, 2025 · 2 comments
Labels
P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request

Comments

@chinanewer
Copy link

Description of the bug:

My operating system is Windows 11
And my system username is: 王鼎.
When I use the bazel. exe help command, the following result is displayed:

E:\Codes\tmp\xxx>bazel.exe help
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Server crashed during startup. Now printing c:\users\wangding\_bazel_������\mhbaa5od\server\jvm.out
Error: Unable to access jarfile c:\\users\\wangding\\_bazel_??????\\install\\2c6e961c0ed763b33d5d5fbf42980427\\A-server.jar

When I switched my username to a pure English name(Admin), everything worked fine.
The user path is as follows: C:\Users\Administrator_bazel_Admin

Which category does this issue belong to?

Server-Side Rules

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Convert the user name of the operating system into a Chinese character name

Which operating system are you running Bazel on?

windows 11 x64

What is the output of bazel info release?

some err info

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

bazel-7.5.0rc2-windows-x86_64, download the official generated executable file from GitHub

What's the output of git remote get-url origin; git rev-parse HEAD ?


If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@tjgq
Copy link
Contributor

tjgq commented Jan 29, 2025

cc @fmeum

This is potentially fixed in 8.0.0, which contains many bugfixes for handling non-ASCII characters. Mind giving it a try and reporting here if it still doesn't work? (We can consider backporting the fixes to 7.x if we decide to make another minor release, but it's too late for 7.5.0.)

@fmeum
Copy link
Collaborator

fmeum commented Jan 29, 2025

This might require #24457, which I hope to get into 8.1.0 but is currently blocked on the rules_java update.

@comius comius added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed team-Rules-Server Issues for serverside rules included with Bazel labels Jan 31, 2025
@meteorcloudy meteorcloudy added type: feature request P2 We'll consider working on this in future. (Assignee optional) and removed type: bug untriaged labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request
Projects
None yet
Development

No branches or pull requests

8 participants