Repair t2000-sync regression
commit425d7adca5b1f0577fa3dfc9fb2a084baad54ef7
authorPeter Grayson <jpgrayson@gmail.com>
Thu, 25 Jan 2018 16:34:44 +0000 (25 11:34 -0500)
committerPeter Grayson <jpgrayson@gmail.com>
Fri, 26 Jan 2018 05:23:03 +0000 (26 00:23 -0500)
treea0c2d03094f110424b75fd358944fbbfc29e32ba
parenta56e7126a7c554fac840adc40ffa834b44247c59
Repair t2000-sync regression

When exporting, we now open the patch files with explicit utf-8 encoding.
Without explicitly choosing the encoding, it defaults to the locale
encoding which is C/ASCII in the test environment.

We similarly use utf-8 encoding when opening patch files to be applied
(i.e. for `stg sync`).

Signed-off-by: Peter Grayson <jpgrayson@gmail.com>
stgit/commands/export.py
stgit/git.py