From owner-freebsd-questions@freebsd.org Mon Dec 11 22:14:19 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78848EA067E for ; Mon, 11 Dec 2017 22:14:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFE1A7BF9A for ; Mon, 11 Dec 2017 22:14:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.18.98]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPA (Nemesis) id 0Lr6Nr-1f1ReV11VL-00eblj; Mon, 11 Dec 2017 23:14:08 +0100 Date: Mon, 11 Dec 2017 23:13:58 +0100 From: Polytropon To: Vitalio D Cc: Ben Woods , Polytropon , "freebsd-questions@freebsd.org" , "steve@sohara.org" Subject: Re: vt(4) iso-8859-1 latin accentuated characters do not show on console Message-Id: <20171211231358.9fb80b47.freebsd@edvax.de> In-Reply-To: References: <20171211212252.e403c4d2.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:XszuH7RPF8MRUqVbnhrPSfkGrmxgnoYhwswBAXNQceqNrtVe7ky pegpOizfDHsE4+6mLqM8c9N+PGLAi6fktNM2Nr+3vEFxAZ+Q1G0qK3YNyW4FC0GeN8KVfiy cA1D52fVHpEEO4zR11HhyYuZWlsE2E88Rfvl4is0A0xEyadqjJHOkBKDxhDjsNHBM6oWrBr qtykZOPAEVrEljKGB9g5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:Z29+LImY0pM=:TkhZ8E+sRhd1VeM6m4ORU4 PAnkPEd+5I42cChIX8lJD7IT19nKm9Hqr2Ncd+KwEp+LfxJqY/I1nXOKHXVc0TxOoP2wZpl9k dEthfZmoFXkfXubxR55FKPCjxyWj3ga6yNpNzBXs0pgohUly7Tk8JjGi/9UbuCrIuBNmFWm1c vkO7nD1iJi0GjVKCam0If5Tu9nGV6oIWuSqHrhwmDVI8N9DxDq2hRgZeZz+GCSnvmzJrqNlH6 /lfx1DqbuuLdOjc9HdBqr1hOpJPMtSKJC5djo2M9wU+bP42dQVXzXKOecwaleJI/5Jo/3/BLM 5NYz4G7YvETyz8dAjeESSPo+i5ITfquOPRQqUFbcb2l9lwx1JpkSMx0nYjOghf1ZA1KJ7fwta Ixzfc96MDNksCjl61SII21qIMpR2EduNzC13z8FlbjX77XZE6OIPdS4hkvcCxIlfeWF+JT1hd CS4R4u3sFJ9IPtYrIjsKrL7/J20BbN3fhANA+utQv2cjhWcupK+lGK13njxzcSd71AfoM21UL ahX6aH3TGrSwtDmWRNnUL/JFs+5akxuo1kv5WBvXC1u/xrSQ+3W6JX/j3a09KjQR7Oc3gnzZf EAhRIbJJrErGiGq1pnplfnXQERzW7o94WNi/nY8gHKQZgo0ZVlmfqa27NNsQ+odUVTI6Mo7b2 1yqIvqwK498KQe6D7eiTyOu9BA1m8yZjINkgw/NNywcqS/7GmRXgdKMkoohovsnXtu7SbE4e1 WEiOw01tLuXuBBhkZUzS3Hhhf9hYKMTAjzpJ2RWtkQ7JkVv2ml6rZdEjUFo= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 22:14:19 -0000 On Mon, 11 Dec 2017 22:02:25 +0000, Vitalio D wrote: > Hello, Ben, Polytropon, Steve > > Ok got it at the end. As we say in french 'ouf enfin' :) > > So yes both MM_CHARSET and LANG are mandatory > CHARSET should be UTF-8 > and lang accordingly in my case fr_FR.UTF-8 > From ~/.login_config > > me:\ > :charset=UTF-8:\ > :lang=fr_FR.UTF-8: > > Drawback is that now all doc is in french :) > This is kind surprising that I'm > forced to read a doc in french when all I wanted is to be able to type some > weird french letters. :) That is surely _not_ surprising. Setting lang in login.conf has an effect on certain LC_ variables. As you know, there is LC_ALL, LC_MESSAGES (the system messages), LC_TIME for time format, and so on, and there is LANG (with a specific precedence). If you don't set lang in login.conf, but instead use your C shell login file with setenv's, you can exercise more control: setenv LC_ALL en_US.UTF-8 As well as: setenv LC_MESSAGES en_US.UTF-8 setenv LC_COLLATE de_DE.UTF-8 setenv LC_CTYPE de_DE.UTF-8 setenv LC_MONETARY de_DE.UTF-8 setenv LC_NUMERIC de_DE.UTF-8 setenv LC_TIME de_DE.UTF-8 This example will set german standards everywhere, but the messages will still be in the preferred english language. > That's why I've missed it first time. I was just setting the > charset but not lang. Keyboard language and screen language should match, at least agree on the character set. :-) > valid lang values can be figured out as from handbook by running > 'locale -a' command, > and yes there is a fr_FR.UTF-8 entry. That entry name is correct. Now you're probably beginning to experience the joy of incompatible character encodings on your system - ISO8859-1 vs. UTF-8, different kinds of spaces that all look the same, one byte ot two bytes, well, who cares... and don't even try to count how many characters... THERE ARE FOUR CHARACTERS! ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...