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

call getKnownJavacLints error when locale language is chinese #265

Open
ningpengtao-coder opened this issue Jul 3, 2022 · 1 comment
Open

Comments

@ningpengtao-coder
Copy link

reason:
When compiling graalvmjdk, mx calls getKnownJavacLints if the local language is Chinese, it will cause UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 19: invalid start byte, and there is no problem if the local language is English
resolution:
Add errors="ignore" named parameter to ignore errors when decoding strings

@Terrency
Copy link

Terrency commented Apr 4, 2024

workaround instructions for some mx beginner from developer:
change mx\src\mx\_impl\support\processes.py
line 59
return subprocess.check_output(*args, **kwargs).decode(errors="ignore")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants