Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 519074

Summary: emerge fails when LANG setting is not valid
Product: Portage Development Reporter: Mike Gilbert <floppym>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: zerochaos
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    
Attachments: Don't die when the user has an invalid locale

Description Mike Gilbert gentoo-dev 2014-08-04 19:08:13 UTC
% LANG=foo emerge --info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 51, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/main.py", line 1002, in emerge_main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python3.4/locale.py", line 592, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

I think this should be non-fatal.
Comment 1 Mike Gilbert gentoo-dev 2014-08-04 19:10:06 UTC
Created attachment 382268 [details, diff]
Don't die when the user has an invalid locale
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2014-08-04 19:13:43 UTC
For some odd reason my LANG="en_US.UTF-8" is invalid when building stages in catalyst.  I set LC_ALL=C (I know, bad boy) and it "fixed" it.  I am happy to test any patches for this.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2014-08-22 16:52:06 UTC
Released in portage-2.2.12