On Mon, Jun 18, 2018, at 00:25 CDT, Markus Armbruster <[email protected]> wrote:

> Matthias Maier <[email protected]> writes:
>
>> This is a different approach to fix the locale dependent encode/decode
>> problem in common.py utilizing the binary read/write mode [1,2], and (if
>> a python 3 interpreter is used) with explicit decode/encode arguments
>> [3].
>
> Why can't we simply pass encoding='utf-8' to open()?

Because this breaks python-2 compatibility.

Best,
Matthias

Reply via email to