From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31065 invoked by uid 1002); 6 Dec 2002 21:39:28 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 31056 invoked from network); 6 Dec 2002 21:39:28 -0000 To: gentoo-dev@gentoo.org From: "James H. Cloos Jr." Date: 06 Dec 2002 16:38:24 -0500 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Subject: [gentoo-dev] utf8 locals, man pages and copy-n-paste X-Archives-Salt: 423e8284-1f64-471d-97d0-d73546812903 X-Archives-Hash: 8a2e87793c61427d2bdce0b5624b754c My test install of gentoo is a bit out of date; perhaps this has already been addressed, but if not /usr/share/groff/site-tmac/man.local ought to be updated to include something a la what is described in the attached message from the linux-utf8 list. The change ensures that you can copy-n-paste command line args from a manpage to the shell. W/o the addition to man.local, you get unicode dash characters rather than ascii - .... -JimC --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: linux-utf8-bounce@nl.linux.org Thu Dec 5 14:54:11 2002 Subject: Re: filename and normalization From: Mike FABIAN Date: Thu, 05 Dec 2002 15:46:49 +0100 Message-ID: X-List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Werner LEMBERG [wrote]: > A better temporary solution is to add the following to man.local: > > .if '\*[.T]'utf8' \ > . char \- \N'45' > > At least SuSE and Debian are already doing this. I extended it a little bit shortly after the release of SuSE Linux 8.1: .if '\*[.T]'utf8' \{\ . char \- \N'45' . char - \N'45' .\} because I found quite a few man pages which used just "-o" to write command line options of programs not "\-o", for example the man page of "less" does this. Without that hack, groff translates "-" into yet another variant of "-": U+2010 (HYPHEN). Recently I discovered that opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; written like that in the nroff source of the perlfunc(1) man page also gets rendered strangely for the terminal by groff. The apostrophe in can't becomes U+2019 (RIGHT SINGLE QUOTATION MARK). Shouldn't that remain U+0027 (APOSTROPHE)? And even worse, the U+007C (VERTICAL LINE) in || becomes U+2502 (BOX DRAWINGS LIGHT VERTICAL). I think that should be typeset verbatim, because it is intended as verbatim quote of program text. -- Mike Fabian http://www.suse.de/~mfabian [...] -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/ --=-=-= Content-Type: text/plain; charset=us-ascii -- gentoo-dev@gentoo.org mailing list --=-=-=--