Skip to content

Override locale to always use UTF-8

Thomas Kluyver requested to merge locale-utf8 into master

Description

Python's open() function uses a locale-dependent encoding when files are opened in text mode. This caused some problems with unicode characters when the locale reverted to ASCII.

The aim of this is to make the default encoding for files consistently UTF-8, regardless of the environment variables.

How Has This Been Tested?

TBD

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.

Reviewers

@schmidtp @hammerd @danilevc @roscar

Edited by Thomas Kluyver

Merge request reports