-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix chaotic chinese characters with golang cli commands #18386
Fix chaotic chinese characters with golang cli commands #18386
Conversation
i think the java subprocess should inherit the environment variables from the go CLI process. it does so by default but not when we change the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fix makes sense and i am surprised it has such an impact. thanks for investigating and resolving the bug!
alluxio-bot, merge this please |
alluxio-bot, cherry-pick this to branch-3-1.1.x please |
When debugging load command, it is found that `./bin/alluxio` CLI can't process Chinese characters correctly. There must be something wrong with the CLI encoding or decoding. It seems that the Chinese characters are encoded incorrectly. This happens because the construction of CLI commands does not initialize environmental variables correctly. OS-level environmental variables are ignored, so the program uses a false encoder. This pull request fixes this problem. pr-link: #18386 change-id: cid-a15fb106b4a6cd77087cdbba82e426f1ba1e4b4c
Auto cherry-pick to branch |
Cherry-pick of existing commit. orig-pr: #18386 orig-commit: 7d15de7 orig-commit-author: twalluxio <[email protected]> pr-link: #18394 change-id: cid-a15fb106b4a6cd77087cdbba82e426f1ba1e4b4c
When debugging load command, it is found that `./bin/alluxio` CLI can't process Chinese characters correctly. There must be something wrong with the CLI encoding or decoding. It seems that the Chinese characters are encoded incorrectly. This happens because the construction of CLI commands does not initialize environmental variables correctly. OS-level environmental variables are ignored, so the program uses a false encoder. This pull request fixes this problem. pr-link: Alluxio#18386 change-id: cid-a15fb106b4a6cd77087cdbba82e426f1ba1e4b4c
When debugging load command, it is found that
./bin/alluxio
CLI can't process Chinese characters correctly. There must be something wrong with the CLI encoding or decoding. It seems that the Chinese characters are encoded incorrectly.This happens because the construction of CLI commands does not initialize environmental variables correctly. OS-level environmental variables are ignored, so the program uses a false encoder.
This pull request fixes this problem.