1 |
--- |
2 |
pym/_emerge/main.py | 5 ++++- |
3 |
1 file changed, 4 insertions(+), 1 deletion(-) |
4 |
|
5 |
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py |
6 |
index 1a920f7..722da84 100644 |
7 |
--- a/pym/_emerge/main.py |
8 |
+++ b/pym/_emerge/main.py |
9 |
@@ -999,7 +999,10 @@ def emerge_main(args=None): |
10 |
args = portage._decode_argv(args) |
11 |
|
12 |
# Use system locale. |
13 |
- locale.setlocale(locale.LC_ALL, '') |
14 |
+ try: |
15 |
+ locale.setlocale(locale.LC_ALL, '') |
16 |
+ except locale.Error as e: |
17 |
+ print(e) |
18 |
|
19 |
# Disable color until we're sure that it should be enabled (after |
20 |
# EMERGE_DEFAULT_OPTS has been parsed). |
21 |
-- |
22 |
2.0.4 |