On Mon, Aug 4, 2014 at 12:45 PM, Mike Gilbert <flop...@gentoo.org> wrote:
> --- > pym/_emerge/main.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py > index 1a920f7..722da84 100644 > --- a/pym/_emerge/main.py > +++ b/pym/_emerge/main.py > @@ -999,7 +999,10 @@ def emerge_main(args=None): > args = portage._decode_argv(args) > > # Use system locale. > - locale.setlocale(locale.LC_ALL, '') > + try: > + locale.setlocale(locale.LC_ALL, '') > + except locale.Error as e: > + print(e) > Portage has its own output functions (writemsg?) You need to decide if this should be printed even if -q is passed, should it be colorized, etc... -A > > # Disable color until we're sure that it should be enabled (after > # EMERGE_DEFAULT_OPTS has been parsed). > -- > 2.0.4 > > >