You are not logged in.

#1 2011-10-19 14:52:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

unusual characters displayed... missing a locale or..? [solved]

What is the cause of these usual characters when I "man patch"? Am I missing a locale or something?

image.png

Last edited by graysky (2011-10-19 17:29:53)

Offline

#2 2011-10-19 15:08:09

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: unusual characters displayed... missing a locale or..? [solved]

I see some bulletpoints there on my terminal.
I'd guess your font does not support that particular character. Or given the fact that there are two questionmark characters, are you using utf-8 at all? (I really assume you are, knowing you as power user)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#3 2011-10-19 17:25:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: unusual characters displayed... missing a locale or..? [solved]

@SF - I think I am:

 
$ grep utf8 /etc/rc.conf 
LOCALE="en_US.utf8"

$ grep en_US /etc/locale.gen 
en_US.UTF-8 UTF-8  
en_US ISO-8859-1

The screenshot came from terminal 0.4.8 using monospace/10.  HOWEVER, if I install gnome-terminal and look at the same manpage, I do indeed see a bullet point!  Perhaps this is a limitation of terminal?

EDIT: Yes!  This is the problem.  I followed the advice on this wiki page adding the following to /etc/environment:

LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Rebooted and now there are no funny characters.  Thanks for pointing me in the right direction.

Last edited by graysky (2011-10-19 17:30:06)

Offline

#4 2011-10-19 17:37:37

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: unusual characters displayed... missing a locale or..? [solved]

This is the character,

·

It displays fine here in urxvt with profont.
What if you switch fonts/terminals? Any special settings of your $PAGER? Have you checked the output of `locale'?


This silver ladybug at line 28...

Offline

#5 2011-10-19 17:43:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: unusual characters displayed... missing a locale or..? [solved]

@l -
I switched to gnome-terminal using the same monospace/10 and it was displayed properly.  After reading that wiki page I linked, and appending those two lines to /etc/environment, terminal looks fine.

$ echo $PAGER

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Note the above is after the aforementioned modification.

Offline

#6 2011-10-19 17:57:00

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: unusual characters displayed... missing a locale or..? [solved]

Whoops, didn't read carefully that I missed you had found the solution.
Still feels a little strange to have to set locale in several places IMO, but anyway whatever works... smile


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB