From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 9 16:13:17 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B7EC16A403 for ; Mon, 9 Oct 2006 16:13:17 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3998443D55 for ; Mon, 9 Oct 2006 16:13:14 +0000 (GMT) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (maxlor@c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id k99GDBWA006898 for ; Mon, 9 Oct 2006 18:13:12 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id 132C82E13B for ; Mon, 9 Oct 2006 18:13:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PyokiNGfSJiw for ; Mon, 9 Oct 2006 18:13:10 +0200 (CEST) Received: from merlin.intranet (merlin.intranet [10.0.0.16]) by maxlor.mine.nu (Postfix) with ESMTP id BC79F2E125 for ; Mon, 9 Oct 2006 18:13:10 +0200 (CEST) From: Benjamin Lutz To: freebsd-hackers@freebsd.org Date: Mon, 9 Oct 2006 18:13:07 +0200 User-Agent: KMail/1.9.4 X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"_+R 2@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@g?4f,\c7|Gh wb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart23708676.8NWsF7UCKN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610091813.10453.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.57 on 213.160.40.60 Subject: man(1) and locale codeset X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 16:13:17 -0000 --nextPart23708676.8NWsF7UCKN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, While investigating how to get proper quotes in manpages (proper as=20 explained here: http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html) I found=20 that groff outputs correct quote characters (well, for single quotation=20 marks anyway) with -Tutf8. When looking at the man(1) source code, I saw=20 that the code contains support for specifying a -T parameter based on the=20 codeset of the LC_ALL environment variable. See for example in /usr/src/gnu/usr.bin/man/man/man.c: - line 99, definition of ltable. - line 956, appending of -T parameter to parameter list based on locale_opts. However, lines 1645-1646 and 1697-1698 (my src tree is from FreeBSD 6.2,=20 in case the lines differ look for "locale_opts =3D NULL") disable locale=20 codeset support completely, which cause man to revert to -Tascii. If I=20 comment out those 4 lines, I get UTF-8 manpages with correct single quote=20 characters. What is the reason behind disabling locale support like this? Could this=20 be changed? Cheers Benjamin --nextPart23708676.8NWsF7UCKN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFKnUWzZEjpyKHuQwRAvE8AJ0cs9xXNWBzMkZ5nV7O+gBUCutSdwCfXUIn Rngm07PUzDwYiqQLMWBCLgc= =9JFd -----END PGP SIGNATURE----- --nextPart23708676.8NWsF7UCKN--