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

Bug 60970

Summary: PostgreSQL: non-C LC_MESSAGES break initdb
Product: Gentoo Linux Reporter: Rafal Rzepecki <divided.mind>
Component: [OLD] ServerAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rafal Rzepecki 2004-08-19 19:34:14 UTC
LC_MESSAGES set to anything else than C (even if not set explicitly, but 
implicitly through LC_ALL or LANG) causes initdb to fail with error 'failed to 
initialize lc_messages to ""'. To work around this, line calling initdb in the ebuild has to be prepended with 'LC_MESSAGES=C '.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-22 16:54:17 UTC
Works fine here with 8.0.4, reopen if you still have this issue.
Comment 2 Motosauro 2009-05-05 12:36:52 UTC
(In reply to comment #1)
> Works fine here with 8.0.4, reopen if you still have this issue.
> 

I had the same exact issue:
emerge --config =dev-db/postgresql-8.15.0

fails complaining about lc_message
LC_ALL was set to it_IT.UTF8
I exported manually LC_ALL=C and configuration went well, giving me a working install of postgresql.
After initdb reverting LC_ALL to former values gives no problem.
Comment 3 Motosauro 2009-05-05 12:37:39 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Works fine here with 8.0.4, reopen if you still have this issue.
> > 
> 
> I had the same exact issue:
> emerge --config =dev-db/postgresql-8.15.0
> 
> fails complaining about lc_message
> LC_ALL was set to it_IT.UTF8
> I exported manually LC_ALL=C and configuration went well, giving me a working
> install of postgresql.
> After initdb reverting LC_ALL to former values gives no problem.
> 

sry for the typo
it's 8.0.15,  not 8.15.0