Bug 427042 - Quote characters come out wrong in gnome-terminal
Summary: Quote characters come out wrong in gnome-terminal
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 8
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-30 16:43 UTC by Ed Avis
Modified: 2008-03-20 12:07 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-20 12:07:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ed Avis 2007-12-30 16:43:48 UTC
Description of problem: running man(1) in gnome-terminal mangles the manual
pages changing ASCII ' to a non-ASCII closing quote character.  But this is not
correct, because often that character is used in code samples and this breaks them.

Even outside code samples, the ' character is intended to be a neutral vertical
mark, leaning neither left nor right (see
<http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html>), so it is not correct to
convert it to a closing quote.

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

% man --version
man, version 1.6e
% rpm -q man
man-1.6e-3.fc7

(yes, fc7 is the version included with Fedora 8, see
<http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/x86_64/os/Packages/>)

How reproducible:

Install the package perl-File-Slurp to provide an example man page.  Log in to a
GNOME session and start gnome-terminal with Applications -> System Tools ->
Terminal.  Set LANG=en_GB.UTF-8 or en_US.UTF-8 and have the LC environment
variables unset.  Then say 'man File::Slurp'.
  
Actual results: the manual page appears with code example

my $text = read_file( XfilenameX ) ;

where X is a non-ASCII closing quote character (according to od -t u1, it is the
UTF-8 byte sequence 226 128 153).

Expected results: the example code should have the ASCII ' character.


Additional info: running man from the Linux console seems to work fine, even
though the value of LANG is the same.

Comment 1 Ivana Varekova 2008-03-20 08:56:50 UTC
This is the man-page problem - groff has a special symbol to display  '
character - man pages should use this symbol.

Comment 2 Marcela Mašláňová 2008-03-20 12:07:26 UTC
This is know bug, it was fixed in new perl-5.10.0 in F-9. The problem was caused
by pod2man, which is responsible for generating manual pages for perl. 

The backport fix isn't possible because whole pod2man was rewrite. Please be
patient and wait for new Fedora.


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