This question has come up and been answered on usenet.

groups.google.com

Here's one of the posts.

I've had this problem myself recently and I traced it down to the fact that I didn't have the locales I was requesting setup. I'm a debian user, so I'm not sure if this is the same as RedHat, but the default install only sets up the en_US locale, which is stored in /usr/lib/locale.

To get the others setup, I had to edit a configuration file /etc/locale.gen and uncomment all of the locales that I required.

I then had to run locale-gen (as root), this generates the required locales. After this the locales all worked fine, for everything.

Note that this setups the locales using the strict xx_XX language codes, so if you want french - french ( as apposed to canadian french fr_CA) you have to specify fr_FR. Likewise there is no "en" on it's own, if you want these two letter versions you'll have to add an entry in /etc/locale.alias.


In reply to Re: LC_ALL and LANG errors by jacques
in thread LC_ALL and LANG errors by Kevlar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.