-
Notifications
You must be signed in to change notification settings - Fork 487
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
Issue with windows encoding and expand vars #4519
Comments
Is this just for static mode? |
Tested and it affects both |
Possibly due to injecting the environment variables into a byte stream without converting to UTF8. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. The issue will not be closed automatically, but a label will be added to it for tracking purposes. If the opened issue is a bug, check if newer releases have fixed the issue. If the issue is no longer relevant, please feel free to close it. |
This might be able to be solved by using https://github.com/softlandia/cpd |
What's wrong?
If using an encoding that is not windows 1252 on a file (lets say UTF-16E) when the agent tries to expand vars it seems to write a UTF8 string into UTF16. This gives an error.
The simplest solution would be to either convert to UTF8 beforehand or return an error if the file is not utf8 or windows 1252.
Steps to reproduce
TBD
System information
No response
Software version
No response
Configuration
No response
Logs
No response
The text was updated successfully, but these errors were encountered: