Encoding preparations for Python 3.5
This is in preparation for Python 3.5 where the default encoding
depends on the value of the LANG environment variable. As far as
I can tell, this was changed later on and at least Python 3.7 and
version 3.8 always default to 'utf-8' on Linux. As I'm proposing to
make Python 3.5 the required minimum, we can't rely on this and need
to force 'utf-8' when reading files that could contain Unicode.
sys.stdout is already in lilylib and codecs.open() always opens
a file in binary mode.
It's not needed anymore as sys.stdout and sys.stderr are wrapped
with encoding writers. (The argument file for show_rules in script
convert-ly is also sys.stdout.)
Diff:
This 'fails' a make doc ... right at the end .. it looks like it is about to complete but it posts this
Thanks for testing, this process is incredibly helpful! Unfortunately I can't figure out how to make this work in Python 2 without still needing changes for Python 3 :-( so I guess I'll just put this on my growing list of incompatible changes that need to be added after after running 2to3...
Revert changes for www_post
http://codereview.appspot.com/551340043
Passes make, make check and a full make doc.
Patch on coutdown for Jan 21st
Patch counted down - please push
pushed to staging as