~valavanisalex/libcroco/trunk

Viewing all changes in revision 411.

  • Committer: Chun-wei Fan
  • Date: 2017-05-10 01:43:24 UTC
  • Revision ID: git-v1:9c4776803bf3564c1cb18dc995a3d0dafaf14343
win32/replace.py: Fix replacing items in files with UTF-8 content

Some files that this script will process might have UTF-8 items in
there, which can cause problems on Python 3.x as it is more strict and
careful on unicode issues.  Fix this by:

-Doing what we did before on Python 2.x
-Opening the file with encoding='utf-8' on Python 3.x

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: