<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cyfinity &#187; 8.04</title>
	<atom:link href="http://www.cyfinity.com/tag/804/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyfinity.com</link>
	<description>If it's broke, fix it</description>
	<lastBuildDate>Sat, 24 Oct 2009 17:49:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing &#8220;locales&#8221; error on Ubuntu</title>
		<link>http://www.cyfinity.com/2009/01/fixing-locales-error-on-ubuntu/</link>
		<comments>http://www.cyfinity.com/2009/01/fixing-locales-error-on-ubuntu/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 05:23:29 +0000</pubDate>
		<dc:creator>ninjaneer</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[locales]]></category>
		<category><![CDATA[setting locale failed]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.cyfinity.com/?p=106</guid>
		<description><![CDATA[On a Ubuntu 8.04LTS server, I recently had an annoying case where the system would spew an error out seemingly every time a command was executed.
The error format was thus:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling [...]]]></description>
			<content:encoded><![CDATA[<p>On a Ubuntu 8.04LTS server, I recently had an annoying case where the system would spew an error out seemingly every time a command was executed.</p>
<p><code>The error format was thus:<br />
perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = (unset),<br />
LC_ALL = (unset),<br />
LANG = "en_US.UTF-8"<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").<br />
perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = (unset),<br />
LC_ALL = (unset),<br />
LANG = "en_US.UTF-8"<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").</code></p>
<p>Clearly something wasn&#8217;t happy and that something appeared to be my &#8216;<a title="Wikipedia:locales" href="http://en.wikipedia.org/wiki/Locales" target="_blank">locales</a>&#8216;. They are actually quite self-explanatory, they define the language and location of a user in order to allow the correct presentation of the user interface. Great if you want to avoid having to read Kanji on the command line but not so much use if it&#8217;s just Crontab talking to the root account and filling up the mailbox with errors.</p>
<p>With a bit of searching, I found a simple enough answer. Obviously, as the error states, the locales need to be set. To do this issue the command:</p>
<p><code>sudo locale-gen</code></p>
<p>You can add your preferred locale to the end of this ie:<br />
<code><br />
sudo locale-gen en_US.UTF-8</code></p>
<p>&#8230;which will generate the US English interface language with UTF-8 character formatting.</p>
<p>Then issue:<br />
<code><br />
sudo dpkg-reconfigure locales</code></p>
<p>Hopefully, your locales will be set and that annoying error will be banished both from the console and your root inbox.</p>
<p><small>Credit to <a title="Locales thread on Ubuntu Forums" href="http://ubuntuforums.org/showthread.php?t=75493" target="_blank">this thread</a> at Ubuntu Forums</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyfinity.com/2009/01/fixing-locales-error-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
