-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't workingformatIssues related to format analyzerIssues related to format analyzermediumMedium sizeMedium sizetypos
Description
ATM we often don't specify the encoding in open calls. We should instead specify utf-8 everywhere because the default is platform dependent:
encoding is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform dependent (whatever locale.getpreferredencoding() returns), but any text encoding supported by Python can be used. See the codecs module for the list of supported encodings.
That means all our open, pathlib.Path.read_text and related calls should specify encoding="utf-8".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingformatIssues related to format analyzerIssues related to format analyzermediumMedium sizeMedium sizetypos