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

Open binary files in binary mode and do not encode them #829

Merged
merged 6 commits into from
Apr 12, 2022

Conversation

Tymolc
Copy link
Contributor

@Tymolc Tymolc commented Mar 7, 2022

Fixes #791

The MIME type of files is checked for the "text" keyword. If it is present, the file will be opened in standard text mode (modifier r), if not it is assumed to be binary data and opened in binary mode (modifier rb).
In case of a binary file, the UTF-8 encoding will be skipped.

Related to kapicorp/kapitan-reference#106

@Moep90
Copy link
Contributor

Moep90 commented Mar 9, 2022

tests seams to be fixed with #828

@Tymolc
Copy link
Contributor Author

Tymolc commented Mar 10, 2022

TODOS:

@Tymolc Tymolc marked this pull request as ready for review March 21, 2022 10:32
@Tymolc Tymolc changed the title Draft: Open binary files in binary mode and do not encode them Open binary files in binary mode and do not encode them Mar 21, 2022
@ramaro
Copy link
Member

ramaro commented Apr 12, 2022

Thank you @Tymolc @Moep90 Merging :D

@ramaro ramaro merged commit 7f2d86e into kapicorp:master Apr 12, 2022
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

Successfully merging this pull request may close these issues.

kapitan refs fail to handle binary files
4 participants