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

Handle missing iconv option gracefully #20

Merged
merged 1 commit into from Sep 11, 2023

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Sep 9, 2023

Older iconv versions do not have the --unicode-subst option, which results in an error containing the full unknown command line option to be emitted. This includes the string "\u%04x" which will end up in the returned JSON via the _output key and isn't a valid parsable Unicode escape sequence, which results in JSON parsing errors.

This resolves issue #19

Older iconv versions do not have the --unicode-subst option,
which results in an error containing the full unknown command
line option to be emitted. This includes the string "\u%04x"
which will end up in the returned JSON via the _output key
and isn't a valid parsable Unicode escape sequence, which
results in JSON parsing errors.
Copy link
Contributor

@m0dular m0dular left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@m0dular m0dular merged commit 2325146 into puppetlabs:main Sep 11, 2023
9 checks passed
@MartyEwings MartyEwings added the bug Something isn't working label Sep 12, 2023
@seanmil seanmil deleted the handle_iconv_error branch October 16, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants