<p><br>
On Dec 13, 2011 10:46 PM, &quot;Jarry&quot; &lt;<a href="mailto:mr.jarry@gmail.com">mr.jarry@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; I just tried to update my system but emerging app-misc/ca-certificate<br>
&gt; failed with this error:<br>
&gt; -------------------<br>
&gt;  File &quot;/usr/lib64/portage/pym/portage/__init__.py&quot;, line 178, in _unicode_encode<br>
&gt;    s = s.encode(encoding, errors)<br>
&gt; UnicodeEncodeError: &#39;ascii&#39; codec can&#39;t encode character u&#39;\u011f&#39; in position 68: ordinal not in range(128)<br>
&gt;<br>
&gt; &gt;&gt;&gt; Failed to install app-misc/ca-certificates-20111025, Log file:<br>
&gt;<br>
&gt;  * This package installs one or more file names containing characters that<br>
&gt;  * do not match your current locale settings. The current setting for<br>
&gt;  * filesystem encoding is &#39;ANSI_X3.4-1968&#39;.<br>
&gt;<br>
&gt;  * For best results, UTF-8 encoding is recommended. See the Gentoo Linux<br>
&gt;  * Localization Guide for instructions about how to configure your<br>
&gt;  * locale for UTF-8 encoding:<br>
&gt;  *<br>
&gt;  *      <a href="http://www.gentoo.org/doc/en/guide-localization.xml">http://www.gentoo.org/doc/en/guide-localization.xml</a><br>
&gt; -------------------<br>
&gt;<br>
&gt; I did not have any /etc/env.d/02locale file, so I created<br>
&gt; one with LANG=&quot;en_GB.UTF-8&quot; in it, but I still get the same<br>
&gt; error. I tried en_US.UTF-8 or en_EN.UTF-8 with the same<br>
&gt; results. I really do not understand what ca-certificates<br>
&gt; needs to get it installed...<br>
&gt;</p>
<p>Have you tried locale-gen and env-update ?</p>
<p>Rgds,<br>
</p>