1 |
This avoids UnicodeDecodeError problems by using UTF-8 encoding |
2 |
regardless of the locale. |
3 |
|
4 |
X-Gentoo-Bug: 545270 |
5 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545270 |
6 |
--- |
7 |
pym/portage/dispatch_conf.py | 3 +-- |
8 |
1 file changed, 1 insertion(+), 2 deletions(-) |
9 |
|
10 |
diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py |
11 |
index 790eacb..df02bf2 100644 |
12 |
--- a/pym/portage/dispatch_conf.py |
13 |
+++ b/pym/portage/dispatch_conf.py |
14 |
@@ -10,7 +10,6 @@ from __future__ import print_function, unicode_literals |
15 |
|
16 |
import io |
17 |
import functools |
18 |
-import os |
19 |
import shutil |
20 |
import stat |
21 |
import subprocess |
22 |
@@ -18,7 +17,7 @@ import sys |
23 |
import tempfile |
24 |
|
25 |
import portage |
26 |
-from portage import _encodings |
27 |
+from portage import _encodings, os |
28 |
from portage.env.loaders import KeyValuePairFileLoader |
29 |
from portage.localization import _ |
30 |
from portage.util import shlex_split, varexpand |
31 |
-- |
32 |
2.3.1 |