BESSOT Jean-Michel <jean-michel.bes...@lacomte.net> writes:

> hello
>
> Le 3/6/25 à 5:34 PM, Stefan Sperling a écrit :
>> On Thu, Mar 06, 2025 at 05:11:55PM +0100, BESSOT Jean-Michel wrote:
>>> Hello
>>>
>>> I have a problem the accented characters showing _ in shell . I have
>>> installed and configured spleen font. put LANG and LC_CTYPE to fr_FR.UTF-8
>>> but it do not show up. If you have an idea ?
>>>
>>> here locale command:
>>>
>>> jean-mi@x1:~$ locale
>>> LANG=fr_FR.UTF-8
>>> LC_COLLATE="fr_FR.UTF-8"
>>> LC_CTYPE=fr_FR.UTF-8
>>> LC_MONETARY="fr_FR.UTF-8"
>>> LC_NUMERIC="fr_FR.UTF-8"
>>> LC_TIME="fr_FR.UTF-8"
>>> LC_MESSAGES="fr_FR.UTF-8"
>>> LC_ALL=
>> The locale looks fine.
>>
>> Are you running in X11 or on console?
>> The console does not support UTF-8. You will need to run X11.
> It is on xenocara.
>> To get a working setup you can then tweak, put this line into ~/.xsession:
>>
>>    export LC_CTYPE=fr_FR.UTF-8
>>
>> And log in via xenodm.
>>
>> Configure a font which xterm can use. For example, put this line:
>>
>>    XTerm*faceName: DejaVu Sans Mono
>>
>> into ~/.Xdefaults and then run
>>
>>    xrdb -merge ~/.Xdefaults
>>
>> A newly started xterm should now show accented characters.
>
> I did all that. It seems to not bug as it bugged when there was not so
> much UTF8 in openbsd (remeber when we delete an UTF8 character). It
> seems it is just the displaying that don't work.
>
> I also tried putting LC_ALL="fr_FR.UTF-8"  and no change.
>
> I missed something when reinstalling and reconfigurating the computer
> but I don't see what.
>
> bye
>
>

Just put the line below

export LANG=en_US.UTF-8

in your ~/.profile and ~/.xsession files.

$ locale
LANG=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

-- 
François Chambaud
https://www.chambaud.org

Reply via email to