public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Mol <mikemol@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Failed to install app-misc/ca-certificate - locale problem
Date: Tue, 13 Dec 2011 11:48:58 -0500	[thread overview]
Message-ID: <CA+czFiB+CEPqu81rRgc8RgtGfOtQ7kMrFXsgxWu1nuVGsAmCRw@mail.gmail.com> (raw)
In-Reply-To: <4EE77ACD.6050809@gmail.com>

On Tue, Dec 13, 2011 at 11:18 AM, Jarry <mr.jarry@gmail.com> wrote:
> On 13-Dec-11 16:56, Michael Mol wrote:
>>>
>>> I just tried to update my system but emerging app-misc/ca-certificate
>>> failed with this error:
>>> -------------------
>>>  File "/usr/lib64/portage/pym/portage/__init__.py", line 178, in
>>> _unicode_encode
>>>    s = s.encode(encoding, errors)
>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in
>>> position 68: ordinal not in range(128)
>>>
>>>>>> Failed to install app-misc/ca-certificates-20111025, Log file:
>>>
>>>
>>>  * This package installs one or more file names containing characters
>>> that
>>>  * do not match your current locale settings. The current setting for
>>>  * filesystem encoding is 'ANSI_X3.4-1968'.
>>>
>>>  * For best results, UTF-8 encoding is recommended. See the Gentoo Linux
>>>  * Localization Guide for instructions about how to configure your
>>>  * locale for UTF-8 encoding:
>>>  *
>>>  *      http://www.gentoo.org/doc/en/guide-localization.xml
>>> -------------------
>>>
>>> I did not have any /etc/env.d/02locale file, so I created
>>> one with LANG="en_GB.UTF-8" in it, but I still get the same
>>> error. I tried en_US.UTF-8 or en_EN.UTF-8 with the same
>>> results. I really do not understand what ca-certificates
>>> needs to get it installed...
>>
>>
>> Having set up three Gentoo installs in the last month, and I've seen
>> this each time.
>>
>> It's blunt, but a mixture of "emerge -e --keep-going @world",
>> "shutdown -r now" and "emerge --resume --keep-going" commands clears
>> it up.
>
>
> OMG, I have to recompile the whole world to fix it???
> This is definitelly not "small" bug if it costs half day
> of compilation time...    :-(

I've only *ever* seen it on fresh installs. An "emerge -e @world" to
propagate CFLAGS is usually an early step; I like to do it before I
install much more than 'screen' and 'vim'.

Chances are, it's some smaller thing, like getting locale settings in
place before emerging glibc or some fs tools, but I haven't tried
tracking it down more deeply.

-- 
:wq



  reply	other threads:[~2011-12-13 16:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 15:40 [gentoo-user] Failed to install app-misc/ca-certificate - locale problem Jarry
2011-12-13 15:56 ` Michael Mol
2011-12-13 16:18   ` Jarry
2011-12-13 16:48     ` Michael Mol [this message]
2011-12-13 17:09 ` Pandu Poluan
2011-12-13 17:19   ` Michael Mol
2011-12-13 18:09   ` Jarry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+czFiB+CEPqu81rRgc8RgtGfOtQ7kMrFXsgxWu1nuVGsAmCRw@mail.gmail.com \
    --to=mikemol@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox