From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29872: 26.0.90; `man' output encoding, hyphen chars Date: Sat, 30 Dec 2017 10:13:18 +0200 Message-ID: <83d12wfxb5.fsf@gnu.org> References: <2dfed463-2ddb-4591-a476-c78e0b8d445b@default> <838tdnh6ej.fsf@gnu.org> <5a25751a-3a68-4e44-862f-44fa47871c04@default> <83shbtg8zc.fsf@gnu.org> <83mv21fjpb.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514621537 5865 195.159.176.226 (30 Dec 2017 08:12:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2017 08:12:17 +0000 (UTC) Cc: 29872@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 30 09:12:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVCFY-00019t-BL for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Dec 2017 09:12:12 +0100 Original-Received: from localhost ([::1]:45684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVCHV-0007aW-DL for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Dec 2017 03:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVCHO-0007Zp-0o for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2017 03:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVCHK-0002um-Pu for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2017 03:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVCHK-0002uY-Fv for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2017 03:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eVCHK-00010a-8x for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2017 03:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Dec 2017 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29872-submit@debbugs.gnu.org id=B29872.15146216243837 (code B ref 29872); Sat, 30 Dec 2017 08:14:02 +0000 Original-Received: (at 29872) by debbugs.gnu.org; 30 Dec 2017 08:13:44 +0000 Original-Received: from localhost ([127.0.0.1]:57162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVCH2-0000zp-JT for submit@debbugs.gnu.org; Sat, 30 Dec 2017 03:13:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVCGz-0000zX-7q for 29872@debbugs.gnu.org; Sat, 30 Dec 2017 03:13:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVCGq-0002WP-PW for 29872@debbugs.gnu.org; Sat, 30 Dec 2017 03:13:35 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVCGq-0002WK-M2; Sat, 30 Dec 2017 03:13:32 -0500 Original-Received: from [176.228.60.248] (port=4244 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eVCGq-0002g1-54; Sat, 30 Dec 2017 03:13:32 -0500 In-reply-to: (message from Drew Adams on Fri, 29 Dec 2017 16:35:50 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141605 Archived-At: > Date: Fri, 29 Dec 2017 16:35:50 -0800 (PST) > From: Drew Adams > Cc: 29872@debbugs.gnu.org > > > Then I think you will have to set up process-coding-system-alist such > > that it reads output from 'man' with utf-8 decoding. I don't know > > what changed since Emacs 25, but if 'man' produces UTF-8 encoded > > hyphens by default, Emacs needs to be told about that. > > I have no idea in what way to change > `process-coding-system-alist'. The doc string and > (elisp) `Default Coding System' give me no hint that > I can recognize. You said you had this stuff set up for Bash: (setq process-coding-system-alist (cons '("bash" . (raw-text-dos . raw-text-unix)) process-coding-system-alist)) so I assumed you knew how to do that for another program. > I don't even know whether it is the VAL (which is > `(raw-text-dos . raw-text-unix)') that is incorrect > or it is the PATTERN (which is "bash") that is > incorrect, or both. If you don't have problems with Bash, then its existing association in the alist, as set by those cygwin-* libraries, is fine for you. (The latest Cygwin uses UTF-8 by default, so if your Bash is fairly recent, I'd suggest to change the above as well, to use utf-8 instead of raw-text. If your Bash is old, then you probably don't need to bother.) For 'man', try this: (setq process-coding-system-alist (cons '("man" . (utf-8-dos . utf-8-unix)) process-coding-system-alist)) > And it is not even a user option. I'm surprised you find this customization so impenetrable. It's an alist which is IMO clearly documented, and you already have an example for Bash. So what exactly is the difficulty to customize it for a given program, given the existing documentation?