Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2017 23:13:58 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Vitalio D <v.dol_s@hotmail.com>
Cc:        Ben Woods <woodsb02@gmail.com>, Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, "steve@sohara.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: <AM5PR0902MB192373DFA85FBA8DF0948EBEDC370@AM5PR0902MB1923.eurprd09.prod.outlook.com>
References:  <AM5PR0902MB1923F0EC5C436D9FDB0E637DDC370@AM5PR0902MB1923.eurprd09.prod.outlook.com> <20171211212252.e403c4d2.freebsd@edvax.de> <AM5PR0902MB1923C0A5EC84393214E84CC6DC370@AM5PR0902MB1923.eurprd09.prod.outlook.com> <CAOc73CBdWv8BxUE-%2Bs-ceAxOv3NHCs2FETZsxqo6kq2s2YEYTA@mail.gmail.com> <AM5PR0902MB192373DFA85FBA8DF0948EBEDC370@AM5PR0902MB1923.eurprd09.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171211231358.9fb80b47.freebsd>