From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11094 invoked by alias); 15 Nov 2013 16:59:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31986 Received: (qmail 22412 invoked from network); 15 Nov 2013 16:59:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: [PATCH] helpfiles: Also accept 'UTF-8' as an encoding name. From: "Jun T." In-Reply-To: Date: Fri, 15 Nov 2013 23:58:34 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <7AC8C1DC-EADF-4912-8A68-135B83C7DB8D@kba.biglobe.ne.jp> References: <20131112101139.31d67b73@pwslap01u.europe.root.pri> <35BD8D7E-01D5-469D-95DD-3030251D22AB@kba.biglobe.ne.jp> <131113092737.ZM11794@torch.brasslantern.com> <20131114000658.GA52075@redoubt.spodhuis.org> <20131114081859.GA64798@redoubt.spodhuis.org> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1822) I tested several locales and found that the only difference in the generated help docs is the character used for hyphenation (split a word at the end of a line); ASCII minus (0x2D) if C locale is used, and=20 Unicode HYPHEN U+2010 (UTF-8: E2 80 90) if any of UTF-8 locales is used. LC_CTYPE=3DC works at least on my Fedora/Debian/Mac OS X, and I think it is the best and simplest way to go. Having Unicode HYPHEN in otherwise pure ASCII files may just cause trouble rather than benefit. 2013/11/14 20:11=E3=80=81Martin Vaeth = wrote: > System command (cd "/usr/share/man" && (echo ".pl 11i"; \ > /usr/bin/unxz -c '/usr/share/man/man1/zshbuiltins.1.xz') | \ > /usr/bin/gtbl | /usr/bin/nroff -mandoc | \ > /usr/bin/less -+F -LiMXsR --shift 5) exited with status 36096. Maybe colcrt died unexpectedly, and less got SIGPIPE? Could you please try modifying the line 101 of helpfiles unless(open(MANPAGE, '-|', "man $manfile | colcrt -")) { to ..., "man $manfile 2>man.log | colcrt - 2>colcrt.log")) { or even to =E2=80=A6, "man $manfile 2>man.log | tee man.out | colcrt - = 2>colcrt.log")) { and see whether the logfiles (and man.out) contain any useful info. The charset used by less can come from various places; environment variables LESSCHASET, LESSCHARDEF and LC_CTYPE, and your $HOME/.lesskey file (if any).=