Discussion:
en_US locale with glibc-2.2.3-2
Chris Garrigues
2005-12-20 17:03:31 UTC
Permalink
As mentioned on this list yesterday, I installed the PLD version of RPM. This
also required installing the PLD version of glibc-2.2.3-2.

Now, much to my dismay, I get odd errors with RPM relating to locales:

# rpm -qa
rpm: loadlocale.c:221: _nl_load_locale: Assertion `idx % __alignof__ (u_int32_t) == 0' failed.
Aborted

LC_ALL is set to en_US. If I unset it, the problem goes away. If I set it to
POSIX, the problem goes away. If I set it to pl_PL (can't imagine why it
occured to me to try that ;-) , the problem goes away. If I set it en_GB, the
problem returns.

My solution is to change my /etc/sysconfig/i18n to unset it (I assume this is
the same as setting it to POSIX), but as someone who lives in that part of the
world that only uses the lower part of the character set, this was a bit of a
shock to have to learn how locales work.

Chris
--
Chris Garrigues http://www.DeepEddy.Com/~cwg/
virCIO http://www.virCIO.Com
4314 Avenue C
Austin, TX 78751-3709 +1 512 374 0500

My email address is an experiment in SPAM elimination. For an
explanation of what we're doing, see http://www.DeepEddy.Com/tms.html

Nobody ever got fired for buying Microsoft,
but they could get fired for relying on Microsoft.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
Url : /mailman/pipermail/pld-users-en/attachments/20040626/055c9e32/attachment.bin
Michal Kochanowicz
2005-12-20 17:03:31 UTC
Permalink
Post by Chris Garrigues
# rpm -qa
rpm: loadlocale.c:221: _nl_load_locale: Assertion `idx % __alignof__ (u_int32_t) == 0' failed.
Aborted
I've reported exactly same problem to both (users & devel) polish lists,
but it seems that nobody gives a shit and/or nobody knows a reason and
solution. For some programs (rpm, for example) it is enough to recompile
them (but I have no idea why), for others it is not.
Post by Chris Garrigues
LC_ALL is set to en_US. If I unset it, the problem goes away. If I set it to
POSIX, the problem goes away. If I set it to pl_PL (can't imagine why it
It should be enough to set LC_MESSAGES. It works for me with LC_MESSAGES
set to "C", "en_EN" and "pl_PL". I didn't check others.
Post by Chris Garrigues
My solution is to change my /etc/sysconfig/i18n to unset it (I assume this is
I wouldn't call this "solution". It's a _workaround_ :(

Regards
--
--= Michal Kochanowicz==--==--==BOFH==--==--==***@michal.wa-wa.pl =--
--= finger me for PGP public key or visit http://michal.wa-wa.pl/PGP =--
--==--==--==--==--==--==Vodka. Connecting people.=--==--==--==--==--==--
Loading...