<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: LANG prevents PostgreSQL initdb</title>
	<atom:link href="http://dan.langille.org/2009/04/17/lang-prevents-postgresql-initdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.langille.org/2009/04/17/lang-prevents-postgresql-initdb/</link>
	<description>He has another more popular diary.  This one is more general.</description>
	<pubDate>Wed, 08 Feb 2012 00:12:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Dan</title>
		<link>http://dan.langille.org/2009/04/17/lang-prevents-postgresql-initdb/#comment-319</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 18 Apr 2009 13:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=236#comment-319</guid>
		<description>Yes, ~pgsql/login.conf (on a FreeBSD) system would be more practical than the global file.  That change has since been undone.

I think we do need to look more into it, and I'm not sure what is at the bottom.</description>
		<content:encoded><![CDATA[<p>Yes, ~pgsql/login.conf (on a FreeBSD) system would be more practical than the global file.  That change has since been undone.</p>
<p>I think we do need to look more into it, and I&#8217;m not sure what is at the bottom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Smith</title>
		<link>http://dan.langille.org/2009/04/17/lang-prevents-postgresql-initdb/#comment-318</link>
		<dc:creator>Greg Smith</dc:creator>
		<pubDate>Fri, 17 Apr 2009 18:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=236#comment-318</guid>
		<description>The relevant documentation section isn't really obvious, how the server uses LANG is covered in http://www.postgresql.org/docs/8.3/static/locale.html if you didn't find that one yet, and the appropriate background to make sense of that is at http://www.opengroup.org/onlinepubs/007908775/xbd/locale.html  Other relevant environment variables here are include LC_ALL and LC_COLLATE; you should compare those between the server that worked and the one that didn't.

Rather than fiddling with the login info to change LANG, an alternate workaround would be to use the appropriate shell convention to get rid of LANG, like "unset LANG", then run initdb.  You could do that as part of a script that runs initdb if you think LANG might be set to something odd.

There's nothing wrong with manually specifying the encoding and locale at initdb time, as long as you recognize you won't be honoring how the OS it setup that way.  I think you're stuck with digging into this a bit more before you can make the right decision for what you should do.</description>
		<content:encoded><![CDATA[<p>The relevant documentation section isn&#8217;t really obvious, how the server uses LANG is covered in <a href="http://www.postgresql.org/docs/8.3/static/locale.html" rel="nofollow">http://www.postgresql.org/docs/8.3/static/locale.html</a> if you didn&#8217;t find that one yet, and the appropriate background to make sense of that is at <a href="http://www.opengroup.org/onlinepubs/007908775/xbd/locale.html" rel="nofollow">http://www.opengroup.org/onlinepubs/007908775/xbd/locale.html</a>  Other relevant environment variables here are include LC_ALL and LC_COLLATE; you should compare those between the server that worked and the one that didn&#8217;t.</p>
<p>Rather than fiddling with the login info to change LANG, an alternate workaround would be to use the appropriate shell convention to get rid of LANG, like &#8220;unset LANG&#8221;, then run initdb.  You could do that as part of a script that runs initdb if you think LANG might be set to something odd.</p>
<p>There&#8217;s nothing wrong with manually specifying the encoding and locale at initdb time, as long as you recognize you won&#8217;t be honoring how the OS it setup that way.  I think you&#8217;re stuck with digging into this a bit more before you can make the right decision for what you should do.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

