<?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>BigSmoke &#187; locales</title>
	<atom:link href="http://blog.bigsmoke.us/tag/locales/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fixing locale message in Ubuntu when logging in or SCPing</title>
		<link>http://blog.bigsmoke.us/2011/03/22/fixing-locale-message-in-ubuntu-when-logging-in-or-scping</link>
		<comments>http://blog.bigsmoke.us/2011/03/22/fixing-locale-message-in-ubuntu-when-logging-in-or-scping#comments</comments>
		<pubDate>Tue, 22 Mar 2011 09:27:32 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[locales]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1920</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve encountered this error occasionally when loggin in:</p>
<p><pre class="php">-bash: warning: <a href="http://www.php.net/setlocale"><span style="color: #000066;">setlocale</span></a>: LC_ALL: cannot change locale <span style="color: #66cc66;">&#40;</span>nl_NL.UTF<span style="color: #cc66cc;">-8</span><span style="color: #66cc66;">&#41;</span></pre></p>
<p>This breaks things like scp or bzr via sftp. To fix it, I followed <a href="http://www.ubuntugeek.com/how-to-select-and-generate-locales-on-ubuntu.html">this</a> advice:</p>
<p><pre class="php">cd /<span style="color: #000000; font-weight: bold;">var</span>/lib/locales/supported.d
cat /usr/share/i18n/SUPPORTED|grep -i nl &gt; nl
dpkg-reconfigure locales</pre></p>
<p>It&#8217;s not really pretty though; it shouldn&#8217;t give an error at all when a locale is missing. I mean, this way, I have to generate every possible locale to support logins from all over the world&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2011/03/22/fixing-locale-message-in-ubuntu-when-logging-in-or-scping/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding locales in Ubuntu</title>
		<link>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu</link>
		<comments>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu#comments</comments>
		<pubDate>Tue, 16 Jun 2009 09:23:29 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[locales]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=617</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
I wanted the dates on my Kubuntu system to be shown as Dutch dates. Therefore, I needed to add a locale. The place to do it is in /var/lib/locales/supported.d/local. It now contains this:
</p>

<pre class="php">en_US.UTF<span style="color: #cc66cc;">-8</span> UTF<span style="color: #cc66cc;">-8</span>
nl_NL.UTF<span style="color: #cc66cc;">-8</span> UTF<span style="color: #cc66cc;">-8</span></pre>

<p>
Then run locale-gen to generate the locales.
</p>

<p>
Set the following environment vars (in profile or something) to let everything behave properly:
</p>

<pre class="php">export LANG=<span style="color: #ff0000;">&quot;nl_NL.UTF-8&quot;</span>
export LC_MESSAGES=<span style="color: #ff0000;">&quot;en_US.UTF-8&quot;</span>
export LC_COLLATE=<span style="color: #ff0000;">&quot;C&quot;</span></pre>

<p>
I don&#8217;t know anymore why I chose this specific configuration. I guess this means that everything, from thousand and decimal separators to dates is Dutch, and messages are English. I don&#8217;t know, however, why the collate is C. I vaguely remember something about it otherwise not including some characters in the sorting, causing weird sorting in words with dashes and such.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

