From owner-freebsd-questions@freebsd.org Tue Oct 16 05:50:09 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66A7F10E2933 for ; Tue, 16 Oct 2018 05:50:09 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from tmsmtp03oc.mail2world.com (tmsmtp03oc.mail2world.com [209.67.128.156]) by mx1.freebsd.org (Postfix) with ESMTP id ECD237C32A for ; Tue, 16 Oct 2018 05:50:08 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from mail pickup service by tmsmtp03oc.mail2world.com with Microsoft SMTPSVC; Mon, 15 Oct 2018 22:53:05 -0700 X-CTCH-Spam: Unknown auth-sender: mapsware@prodigy.net.mx Received: from 189.173.34.148 unverified ([189.173.34.148]) by tmsmtp03oc.mail2world.com with Mail2World SMTP Server; Mon, 15 Oct 2018 22:53:03 -0700 Date: Mon, 15 Oct 2018 22:49:49 -0700 From: Martin Paredes To: "freebsd-questions@freebsd.org" Subject: Add a locale to FreeBSD 10.0 server Message-ID: <20181015224949.4ac1fd0a@morena.maps.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i386-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 16 Oct 2018 05:53:05.0152 (UTC) FILETIME=[81C52800:01D46514] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2018 05:50:09 -0000 In FreeBSD 10.0 there is not a locale that I want user@server10 ~% locale -a | grep es_MX But in FreeBSD 11.2 it is there user@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=3Diso-8859-1:\ :lang=3Des_MX.ISO8859-1: Now in the console I can type =F1 and =D1, 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=F1o, 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@server10 ~% locale LANG=3Des_MX.ISO8859-1 LC_CTYPE=3DC LC_COLLATE=3DC LC_TIME=3DC LC_NUMERIC=3DC LC_MONETARY=3DC LC_MESSAGES=3DC LC_ALL=3D user@server11 ~% locale LANG=3Des_MX.ISO8859-1 LC_CTYPE=3D"es_MX.ISO8859-1" LC_COLLATE=3D"es_MX.ISO8859-1" LC_TIME=3D"es_MX.ISO8859-1" LC_NUMERIC=3D"es_MX.ISO8859-1" LC_MONETARY=3D"es_MX.ISO8859-1" LC_MESSAGES=3D"es_MX.ISO8859-1" LC_ALL=3D -TIA --=20 Martin Paredes Hermosillo, Son. Mexico