Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60970 - PostgreSQL: non-C LC_MESSAGES break initdb
Summary: PostgreSQL: non-C LC_MESSAGES break initdb
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 19:34 UTC by Rafal Rzepecki
Modified: 2009-05-05 12:37 UTC (History)
1 user (show)

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


Attachments

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