LANG="es_ES" not supported, falling back to "C"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pedro Hernandez

    LANG="es_ES" not supported, falling back to "C"

    Hello!

    I have some (many) text files produced on windows system that I need
    to process a bit, so I wrote a perl script to do the job.

    The files contains characters used in Spanish (e.g. ó, é, ñ) and they
    doesn't come out right.

    I use RedHat 8 and it is installed with Spanish locale. LANG is
    "es_ES.UTF-8".

    However perl complains that this is not supported and falls back to
    "C".

    I have tried with "es_ES" and "es_ES.iso-8859-1" all with the same
    result. If I switch to "en_US" perl doesn't complain, but those
    Spanish characters comes out bad (ñ for example is shown as a little
    "sun").

    If I work with files created on the same machine it works fine.

    Now I figure that there is either something missing in RedHat or in
    perl, that I need to install, but I have no idea of what.

    Someone here that knows how to solve this?

    Thanks
    --ph
Working...