Always load source files in binary mode.

Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.

Fixes #398.
This commit is contained in:
Jorgen Schaefer committed 2014-04-24 11:10:59 +02:00
1 parent 67f49da15c
commit 9ed0dc4861
4 files changed
+24 -8

No files matched your search

+1
View File
@@ -22,5 +22,6 @@ Akinori Hattori (@hattya)
srusskih (@srusskih)
Steven Silvester (@blink1073)
Colin Duquesnoy (@ColinDuquesnoy) <colin.duquesnoy@gmail.com>
Jorgen Schaefer (@jorgenschaefer) <contact@jorgenschaefer.de>
Note: (@user) means a github user name.