Bug 79102 - Broken hyphen-minus character in man pages in UTF-8 locale
Broken hyphen-minus character in man pages in UTF-8 locale
Product: Red Hat Linux
Classification: Retired
Component: groff (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2002-12-05 13:10 EST by Markus Kuhn
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-05 13:10:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Markus Kuhn 2002-12-05 13:10:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827

Description of problem:
gnroff under RH80 translates the HYPHEN-MINUS character (U+002D) into a
Unicode HYPHEN (U+2010), which probabaly was not a good idea. As a
result, cut&pasting command line examples from man pages into xterm
leads to syntax errors.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. LC_CTYPE=en_GB.UTF-8 xterm
2. man ls
3. Cut & paste the displayed command line option "-a" into bash as part of the
command "ls -a"

Actual Results:  ls: -a: No such file or directory

Expected Results:  A directory listing

Additional info:

Other distributions like SuSE and Debian fixed this by adding the following to

    .if '\*[.T]'utf8' \{\
    .  char \- \N'45'
    .  char  - \N'45'

Related thread on linux-utf8:

Comment 1 Florian La Roche 2002-12-06 05:36:18 EST
The Red Hat Linux rpm includes all debian changes and the current rawhide
rpm on top of groff-1.18.1 includes this change from debian. Recompiling
the rawhide rpm and using it on a RHL8 system should be no problem.

Thanks a lot,

Florian La Roche

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