Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got an annoying little issue that's been bugging me for a while. The problem is that hyphens ("-") on my man pages are replaced with gibberish:
Code:
$ man dmesg
DMESG(8) DMESG(8)
NAME
dmesg − print or control the kernel ring buffer
SYNOPSIS
dmesg [ −c ] [ −n level ] [ −s bufsize ]
DESCRIPTION
dmesg is used to examine or control the kernel ring buffer.
The program helps users to print out their bootup messages. Instead of
copying the messages by hand, the user need only:
dmesg > boot.messages
and mail the boot.messages file to whoever can debug their problem.
OPTIONS
−c Clear the ring buffer contents after printing.
−sbufsize
Use a buffer of size bufsize to query the kernel ring buffer.
This is 16392 by default. (The default kernel syslog buffer
size was 4096 at first, 8192 since 1.3.54, 16384 since 2.1.113.)
If you have set the kernel buffer to be larger than the default
then this option can be used to view the entire buffer.
−nlevel
Set the level at which logging of messages is done to the con�
sole. For example, −n 1 prevents all messages, expect panic
messages, from appearing on the console. All levels of messages
are still written to /proc/kmsg, so syslogd(8) can still be used
to control exactly where kernel messages appear. When the −n
option is used, dmesg will not print or clear the kernel ring
buffer.
When both options are used, only the last option on the command
line will have an effect.
SEE ALSO
syslogd(8)
AUTHOR
Theodore Ts’o (tytso@athena.mit.edu)
Hyphens are the primary offender, but as you can see from the authtor's name, that's not the only character that doesn't display properly. What gives? This is a Redhat 8.0 box.
What are you using to access the linux box? Are you at the consol, in a GUI, or using Telnet/SSH?
I use SSH and it is a font issue with SSH on my remote system. It can be changed, but the other fonts display other characters incorrectly, so I just deal with the bad hyphens.
Originally posted by quatsch I get it too because I have locale set to something other than en_US. You can probably get around with
env LC_ALL=en_US man <whatever>
if this works, you can set an alias in ~/.bashrc. Add the line
alias man='env LC_ALL=en_US man'
in the appropriate place.
I am running via SSH, but this did the trick! Thanks for the tip. One less nuisance out there.
Hmmm... bizarre side effect of this. It seems now vi won't accept a backspace or a delete character (which makes it very difficult to edit text files). Any ideas what the original "LC_ALL" setting might have been?
if you are using the env command, LC_ALL gets set only temporarily. You can fnd your default settings in either ~/.i18n, or if that does not exist in /etc/sysconfig/i18n.
Well this is just frustrating.... backspace and delete still do not work in VI. Tried all of the following to no avail:
Code:
$ env LC_ALL=en_US vi blah
$ env LC_ALL=en_US:UTF-8 vi blah (UTF-8 is the default in /etc/sysconfig/i18n btw)
$ env LC_ALL=en_us:en vi blah
$ env LANG=en_US vi blah
$ env LANG=en_US:UTF-8 vi blah
$ env LANG=en_US:en vi blah
Now I wish I had those bizarre characters back on my man pages.
Don't know about the language problems, but for the backspace/delete problem, that is extremely common on *nix Check out this howto for an explanation and how to fix it. One quick-and-dirty fix is to type this as soon as you login:
stty erase (press backspace)
That'll set the backspace code to be used for erasing, as you'd expect. You can also add this to a script that runs when you login... ~/.bashrc or ~/.bash_profile or some such.
quatsh-
vi results in the same problem: no backspace and no del
wapcaplet-
Thanks for the link. I was able to atleast get backspace working again. DEL functions the same as backspace which I think means that I need to modify ~/.tcshrc per that HOWTO. Will get to that a little later... I've got to get some work done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.