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: Fri, 29 Dec 2017 20:54:56 +0200 Message-ID: <83mv21fjpb.fsf@gnu.org> References: <2dfed463-2ddb-4591-a476-c78e0b8d445b@default> <838tdnh6ej.fsf@gnu.org> <5a25751a-3a68-4e44-862f-44fa47871c04@default> <83shbtg8zc.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1514573663 20936 195.159.176.226 (29 Dec 2017 18:54:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 18:54:23 +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 Fri Dec 29 19:54:18 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 1eUznH-0004XC-Tl for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 19:54:12 +0100 Original-Received: from localhost ([::1]:50909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUzpF-0007Np-3r for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 13:56:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUzp9-0007NL-5m for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 13:56:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUzp4-0006v7-Su for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 13:56:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUzp4-0006uT-Oh for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUzp4-0005F3-Ex for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 13:56: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: Fri, 29 Dec 2017 18:56: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.151457372320084 (code B ref 29872); Fri, 29 Dec 2017 18:56:02 +0000 Original-Received: (at 29872) by debbugs.gnu.org; 29 Dec 2017 18:55:23 +0000 Original-Received: from localhost ([127.0.0.1]:56915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUzoR-0005Dr-La for submit@debbugs.gnu.org; Fri, 29 Dec 2017 13:55:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUzoQ-0005Df-NN for 29872@debbugs.gnu.org; Fri, 29 Dec 2017 13:55:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUzoH-0005nK-2y for 29872@debbugs.gnu.org; Fri, 29 Dec 2017 13:55:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUzoH-0005nD-0S; Fri, 29 Dec 2017 13:55:13 -0500 Original-Received: from [176.228.60.248] (port=3456 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eUzoG-0000gP-Dd; Fri, 29 Dec 2017 13:55:12 -0500 In-reply-to: (message from Drew Adams on Fri, 29 Dec 2017 09:21:42 -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:141596 Archived-At: > Date: Fri, 29 Dec 2017 09:21:42 -0800 (PST) > From: Drew Adams > Cc: 29872@debbugs.gnu.org > > > OK. If you manually load man.el from Emacs 25, does the problem go > > away? > > No, I see the same problem. > > > Also, if you invoke the 'man' command from the Bash shell and redirect > > its output to a file, what characters/bytes do you see in place of > > those hyphens in the file created by that command? > > I do `M-x shell' and see this in buffer `*shell*': > > bash: cannot set terminal process group (-1): Inappropriate ioctl for device > bash: no job control in this shell > > > > (Perhaps you have an idea about that? If not, OK.) > > But doing what you said anyway (`man find > foo'), the output > is correct; the "hyphens" are actually hyphens: > > name: HYPHEN > general-category: Pd (Punctuation, Dash) > decomposition: (8208) ('‐') 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.