Merge pull request #655 from JasonAtGithub/master

Fixed encoding error in subset tool in Windows
This commit is contained in:
Sascha Brawer 2016-08-29 15:07:56 +02:00 committed by GitHub
commit aa3b27c663

View File

@ -2902,7 +2902,7 @@ def main(args=None):
text += g[7:]
continue
if g.startswith('--text-file='):
text += open(g[12:]).read().replace('\n', '')
text += open(g[12:], encoding='utf-8').read().replace('\n', '')
continue
if g.startswith('--unicodes='):
if g[11:] == '*':