Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519074 - emerge fails when LANG setting is not valid
Summary: emerge fails when LANG setting is not valid
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2014-08-04 19:08 UTC by Mike Gilbert
Modified: 2014-08-22 16:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Don't die when the user has an invalid locale (0001-emerge-Don-t-die-when-the-user-has-an-invalid-locale.patch,806 bytes, patch)
2014-08-04 19:10 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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