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

PR: Read project config file using UTF-8 (Projects) #16522

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Oct 2, 2021

Description of Changes

This allows to load that file when there are unicode characters in it.

Issue(s) Resolved

Fixes #15340

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

@ccordoba12 ccordoba12 added this to the v5.2.0 milestone Oct 2, 2021
@ccordoba12 ccordoba12 self-assigned this Oct 2, 2021
@CAM-Gerlach CAM-Gerlach changed the title PR: Read project config file using unicode (Projects) PR: Read project config file using UTF-8 (Projects) Oct 5, 2021
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

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

LGTM @ccordoba12 . FYI though, this only affects non-ASCII characters in the file itself; it should have no effect on file paths (unless you're referring to those included as values in the file). Also, note that if the existing file was written out with extended ASCII (Latin-1, Windows-1252, etc) characters (as is possible, though unlikely, on Windows), attempting to read that file will fail. You have confirmed you're already writing it out as UTF-8, correct?

@ccordoba12
Copy link
Member Author

Thanks for the review @CAM-Gerlach!

@ccordoba12 ccordoba12 merged commit 2ca1901 into spyder-ide:5.x Oct 12, 2021
@ccordoba12 ccordoba12 deleted the issue-15340 branch October 12, 2021 16:07
ccordoba12 added a commit that referenced this pull request Oct 12, 2021
@CAM-Gerlach
Copy link
Member

Thanks for all the work @ccordoba12

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.

None yet

2 participants