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

[3006.x] Fix 65777 : Default to utf-8 on all systems #65791

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Jan 4, 2024

What does this PR do?

This attempts to fix some Unicode errors on Windows. Specifically when reading an INI file that contains Unicode characters. Though this should make Salt use utf-8 encoding by default. This attempts to be a more universal fix than just fixing a single module. We may need to address other modules that attempted to address Unicode issues with Python2 and others using MBCS on Windows.

What issues does this PR fix or reference?

Fixes: #65777

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy added the test:full Run the full test suite label Jan 4, 2024
@twangboy twangboy requested a review from a team as a code owner January 4, 2024 18:12
@twangboy twangboy requested review from dwoz and removed request for a team January 4, 2024 18:12
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix 65777 : Default to utf-8 on all systems [master] Fix 65777 : Default to utf-8 on all systems Jan 4, 2024
@twangboy twangboy changed the base branch from master to 3007.x January 4, 2024 18:13
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title [master] Fix 65777 : Default to utf-8 on all systems [3007.x] Fix 65777 : Default to utf-8 on all systems Jan 4, 2024
Adds a new encoding parameter to the ini module to handle scenarios
where the ini file encoding is not utf-8.
Test reading and writing to utf-8, utf-16, utf-16-le and utf-32-le
ini files
Add missing documentation for all functions
Add documentation for new parameter `encoding`
Add Returns section to documentation
@dwoz dwoz merged commit 166560c into saltstack:3006.x Jan 23, 2024
838 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sulfur v3006.6 test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Can't Modify an INI file that contains unicode characters
4 participants