Bug 158890 - special chars in man output even when TERM=dumb
special chars in man output even when TERM=dumb
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: groff (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miroslav Lichvar
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-26 12:26 EDT by Jonathan Kamens
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-25 11:30:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
"man man | col -b" output (10.90 KB, text/plain)
2005-05-30 16:52 EDT, Jonathan Kamens
no flags Details

  None (edit)
Description Jonathan Kamens 2005-05-26 12:26:48 EDT
If I run M-x man RET perlvar RET in Emacs, the resulting file has all kinds of 
trashy special characters in it.  I assume that Emacs is telling man to format 
for a dumb terminal, but it doesn't appear to work.  If I run "TERM=dumb man 
perlvar" in a shell I see the same thing -- the resulting output has special 
formatting characters in it.  I've got all current FC devel packages.
Comment 1 Ivana Varekova 2005-05-27 04:52:42 EDT
Hello,
could you please attach here your man output. Thank you.
Comment 2 Jonathan Kamens 2005-05-30 16:49:11 EDT
It looks like it's outputting unicode.  I'll attach an example.  Here are my
related environment variables:

LANG=en_US.UTF-8
LC_COLLATE=C

I added a Perl script to Man-filter-list to get rid of the annoying characters.
 Here's what it does:

#!/usr/bin/perl

while (<>) {
    1 while (s/[^\010]\010//g);
    s/\342\224\202/\|/g;
    s/\342\224\|/\|/g;
    s/\342\200\234/\"/g;
    s/\342\200\235/\"/g;
    s/\342\200\231/\'/g;
    s/\342\200\'/\'/g;
    s/\342\200\230/\`/g;
    s/\302\302\267/*/g;
    print;
}
Comment 3 Jonathan Kamens 2005-05-30 16:52:03 EDT
Created attachment 114976 [details]
"man man | col -b" output

See, for example, the unicode characters in the "manpage" NAME line at the top.
Comment 4 Miroslav Lichvar 2006-01-25 11:30:15 EST
Your locale is set to UTF-8, therefore groff will output unicode characters
(such as the U+2019 for apostrophe). It is not a bug.

Note You need to log in before you can comment on or make changes to this bug.