-
Notifications
You must be signed in to change notification settings - Fork 351
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
International characters not supported in codeql-action/analyze ? #2777
Comments
The If the LOCALE settings differ from the actual encoding used to create the file on disk then you can get this type of error. What are the LOCALE settings on the Actions runner? |
Could you check that the file name is displayed correctly in GitHub's file browser? If it looks correct, then the file name is likely encoded as UTF-8, which should be the default on the Action runner. |
Hi again :), Just confirmed your feedback, locals were not set on our internal runner image. Further more it seemingly isn't set in the oficial runner image that we build on, see docker file here: By adding the following lines to our docker image:
Rotating all our runnners, and re-running the codeql job, the job completed succesfully. Thanks again for the help. |
This should avoid problems with non-ascii characters in file names, as reported by github/codeql-action#2777
Great! Thanks for confirming. I created a pull request for the base docker image: actions/runner#3721 . Let's see what the actions team thinks about changing the default locale to UTF-8. |
Hi
Tried searching docs and issues for this but couldn't find anything.
I'm running the analyze action on a repository with javascript-typescript as the selected language. I'm doing a manual build where i install nodejs 22 before init is called. The job fails with the following error:
The offending line is an InvalidPathException:
[2025-02-20 12:47:46] [build-stderr] java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/runner/_work/max-optic-pg/max-optic-pg/src/src/tests/test-data/sk?neTrafikkenOffline.ts
The missing character in question is a danish 'å'. But I am somewhat suprised that codeql can't handle international characters in filenames?
Have I missed something? or Is there anyway round this?
This would be a hard block for adoption in our org.
The text was updated successfully, but these errors were encountered: