Skip to content

Wrong encoding of filename in bazel action inputs #14381

@mikasun7

Description

@mikasun7

Description of the problem / feature request:

Hi,
I got the following error when using remote execution: FileNotFoundError: [Errno 2] No such file or directory: 'xxx/task/docs/qtaweb部署.txt'
Then I printed the information of the action using bazel aquery and found that there is an problem in the file name.

image

What operating system are you running Bazel on?

CentOS 7.6

What's the output of bazel info release?

release 3.7.2

Have you found anything relevant by searching the web?

I tried to modify the .bazelrc file by adding startup --host_jvm_args=-Dfile.encoding=en_US.UTF-8
Then I retry and find that the problem still exists.
Checking the process cmdline shows that the changes have not taken effect and the old settings are still in place.

image

How can I solve this problem?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions