public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] dispatch_conf: use portage.os unicode wrapper (bug 545270)
@ 2015-04-01 22:28 Zac Medico
  2015-04-01 22:43 ` [gentoo-portage-dev] [PATCH v2] dispatch_conf: use portage.os, shutil unicode wrappers " Zac Medico
  2015-04-01 23:17 ` [gentoo-portage-dev] [PATCH v3] dispatch-conf: fix unicode handling " Zac Medico
  0 siblings, 2 replies; 3+ messages in thread
From: Zac Medico @ 2015-04-01 22:28 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Zac Medico

This avoids UnicodeDecodeError problems by using UTF-8 encoding
regardless of the locale.

X-Gentoo-Bug: 545270
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545270
---
 pym/portage/dispatch_conf.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py
index 790eacb..df02bf2 100644
--- a/pym/portage/dispatch_conf.py
+++ b/pym/portage/dispatch_conf.py
@@ -10,7 +10,6 @@ from __future__ import print_function, unicode_literals
 
 import io
 import functools
-import os
 import shutil
 import stat
 import subprocess
@@ -18,7 +17,7 @@ import sys
 import tempfile
 
 import portage
-from portage import _encodings
+from portage import _encodings, os
 from portage.env.loaders import KeyValuePairFileLoader
 from portage.localization import _
 from portage.util import shlex_split, varexpand
-- 
2.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-01 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 22:28 [gentoo-portage-dev] [PATCH] dispatch_conf: use portage.os unicode wrapper (bug 545270) Zac Medico
2015-04-01 22:43 ` [gentoo-portage-dev] [PATCH v2] dispatch_conf: use portage.os, shutil unicode wrappers " Zac Medico
2015-04-01 23:17 ` [gentoo-portage-dev] [PATCH v3] dispatch-conf: fix unicode handling " Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox