From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#29872: 26.0.90; `man' output encoding, hyphen chars Date: Sun, 29 Sep 2019 01:26:07 +0200 Message-ID: References: <2dfed463-2ddb-4591-a476-c78e0b8d445b@default> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153765"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 29872@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 01:27:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEM7K-000duJ-DJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 01:27:10 +0200 Original-Received: from localhost ([::1]:35382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEM7J-0001KQ-8J for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Sep 2019 19:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEM7C-0001KD-Td for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2019 19:27:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEM7B-0005fF-Ry for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2019 19:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEM7B-0005f6-P3 for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2019 19:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEM7B-0003C0-JG for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2019 19:27:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <2dfed463-2ddb-4591-a476-c78e0b8d445b@default> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Sep 2019 23:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29872 X-GNU-PR-Package: emacs Original-Received: via spool by 29872-submit@debbugs.gnu.org id=B29872.156971318612217 (code B ref 29872); Sat, 28 Sep 2019 23:27:01 +0000 Original-Received: (at 29872) by debbugs.gnu.org; 28 Sep 2019 23:26:26 +0000 Original-Received: from localhost ([127.0.0.1]:51521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEM6b-0003Az-Qy for submit@debbugs.gnu.org; Sat, 28 Sep 2019 19:26:26 -0400 Original-Received: from mail-pf1-f174.google.com ([209.85.210.174]:37865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEM6a-0003Am-I0 for 29872@debbugs.gnu.org; Sat, 28 Sep 2019 19:26:24 -0400 Original-Received: by mail-pf1-f174.google.com with SMTP id y5so3486718pfo.4 for <29872@debbugs.gnu.org>; Sat, 28 Sep 2019 16:26:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=MXa5YuGJgX6B3Sn+BvHmz3MsKLH06/Z0aMd/UqRRUe8=; b=TCScAtwVOmshev9VAvcwS7QtQIou61AJ3fNBbeN/hFxWJ/OKsC6HZ4CQMP/MmNRplb cr9p58Xt9j6X7vHwKo6IO1njKckels7k71Ok+LJc8HDAFteUc/g8Nq2PNe2kne/HC08F NNYf8ZmYf/GfkP3yjA+7w0FmFIhjOf4+OcjmRXhUCVX/6FJqfCC6JXTQ2a1sn+ZQlOtP Th4FMd+Ob2K49O0qAR4hgBp0qGqwu+cJMZ+LUvDy3SLp0+tjW5wcN1ZxkYff9IStEhq7 EUuYoqF6Nysho+8tgzElK10yOR1f/fGmhw9bFWrzZ/gB6eUotyfv72fqzq2g+OMt+FIg meZw== X-Gm-Message-State: APjAAAWZ+ezq+CdWv9By28JPjgBKNEP79lEgX1YJBuy1eRcJzPYKyJZv 2Hwd2ZahnofoBzJXks3Q3NLamzSpG5wnuwNR/28= X-Google-Smtp-Source: APXvYqwEjuI8FwFmA4r5YYKxcpUHnU8uQLB0c4lqPq1BZHdHgZ8AED2FD2B+6iOU9Jh5bG79mM693MPgif/BPXyIZHk= X-Received: by 2002:a17:90a:1150:: with SMTP id d16mr19005484pje.2.1569713178764; Sat, 28 Sep 2019 16:26:18 -0700 (PDT) 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: 209.51.188.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:167543 Archived-At: fixed 29872 26.1 close 29872 quit Eli Zaretskii writes: >> Date: Sat, 30 Dec 2017 15:11:05 -0800 (PST) >> From: Drew Adams >> Cc: 29872@debbugs.gnu.org >> >> > What about the below, does that work? >> > (let ((locale-coding-system 'utf-8)) >> > (man "find")) >> >> Yes! With `emacs -Q', loading the two files mentioned, >> and then evaluating that sexp, the `man' output is correct: >> hyphens appear as they should - that is: >> >> name: HYPHEN >> general-category: Pd (Punctuation, Dash) >> decomposition: (8208) ('=E2=80=90') >> >> What should I then change in, say, `setup-cygwin.el', >> to make that happen? (Or does something need to be >> changed in Emacs itself?) > > For Emacs 26, I've just committed a change that introduces a new > defcustom, Man-coding-system, which you can customize to utf-8 to get > the correct behavior in your case. For older versions of Emacs, you > will need to use a separate command that invokes 'man' as shown above, > because man.el unconditionally uses locale-coding-system for that, and > locale-coding-system on MS-Windows can never be UTF-8. It seems like this was: commit 39ca289a7a33d514c2a46f005db4e7173fb7e9f5 Author: Eli Zaretskii Date: Sun Dec 31 18:20:12 2017 +0200 Allow customization of decoding of "man" command * lisp/man.el (Man-coding-system): New defcustom. (Man-start-calling): Use it, and also pay attention to user overriding coding-system-for-read. (Bug#29872) Since no one has indicated otherwise in this thread, I'm going to assume that this issue is now fixed and close this bug report. If that is incorrect, please reopen it. Best regards, Stefan Kangas