Add a locale to FreeBSD 10.0 server
Martin Paredes
mapsware at prodigy.net.mx
Tue Oct 16 05:50:09 UTC 2018
In FreeBSD 10.0 there is not a locale that I want
user at server10 ~% locale -a | grep es_MX
But in FreeBSD 11.2 it is there
user at server11 ~% locale -a | grep es_MX
es_MX.ISO8859-1
es_MX.UTF-8
I tar the subdirectorys in server11 and untar in server10
/usr/share/locale/es_MX.ISO8859-1
/usr/share/locale/es_MX.UTF-8
My .login_conf files has
me:\
:charset=iso-8859-1:\
:lang=es_MX.ISO8859-1:
Now in the console I can type ñ and Ñ, but "psql -l" (List of
databases in PostgreSQL) doesn't display characters correctly (an ? are
displayed)
The second column is Owner, in spanish is Dueño, but is displayed Due?o
But if I change to es_ES.ISO8859-1, "psql -l" display character
correctly
Some config is missing becasue LC vars are initialized different
user at server10 ~% locale
LANG=es_MX.ISO8859-1
LC_CTYPE=C
LC_COLLATE=C
LC_TIME=C
LC_NUMERIC=C
LC_MONETARY=C
LC_MESSAGES=C
LC_ALL=
user at server11 ~% locale
LANG=es_MX.ISO8859-1
LC_CTYPE="es_MX.ISO8859-1"
LC_COLLATE="es_MX.ISO8859-1"
LC_TIME="es_MX.ISO8859-1"
LC_NUMERIC="es_MX.ISO8859-1"
LC_MONETARY="es_MX.ISO8859-1"
LC_MESSAGES="es_MX.ISO8859-1"
LC_ALL=
-TIA
--
Martin Paredes
Hermosillo, Son. Mexico
More information about the freebsd-questions
mailing list