From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29872: 26.0.90; `man' output encoding, hyphen chars Date: Sun, 31 Dec 2017 09:34:42 -0800 (PST) Message-ID: 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>> <> <<83d12wfxb5.fsf@gnu.org>> <83o9mgdqn3.fsf@gnu.org> <35ce0970-78e8-4e43-bcc3-4731d201bdd4@default> <83bmieeuhm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514741599 20525 195.159.176.226 (31 Dec 2017 17:33:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 31 Dec 2017 17:33:19 +0000 (UTC) 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 Dec 31 18:33:15 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 1eVhU2-0004uC-RY for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Dec 2017 18:33:15 +0100 Original-Received: from localhost ([::1]:46317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVhW1-0004p4-Q3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Dec 2017 12:35:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVhVp-0004oX-55 for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2017 12:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVhVm-0007Zr-Nj for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2017 12:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50279) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVhVm-0007Zh-Kc for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2017 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eVhVl-0003EL-TP for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2017 12:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Dec 2017 17:35:01 +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.151474170012407 (code B ref 29872); Sun, 31 Dec 2017 17:35:01 +0000 Original-Received: (at 29872) by debbugs.gnu.org; 31 Dec 2017 17:35:00 +0000 Original-Received: from localhost ([127.0.0.1]:58960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVhVj-0003E2-SM for submit@debbugs.gnu.org; Sun, 31 Dec 2017 12:35:00 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:49828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVhVh-0003Do-Kw for 29872@debbugs.gnu.org; Sun, 31 Dec 2017 12:34:58 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBVHYE8O035559; Sun, 31 Dec 2017 17:34:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=p0l6/PBJopfB50LJ1tm39t8IeBVTypoB6EZHdCpLoK0=; b=OOCzYKHUtUZXTP6+bGzeLhh0w2RV2tzFEJ8xadPf7RYHSUP4ORCx+8mrx42kJQBx5lUd OvS2xOK4A9NOYmbBwspzbSc3X1NfhYqNjDbeqWU0jWLuPuWHP4L+6L767vrX+v84dVh1 0gSx2oGO1cQXMFk5vZ4/RvtPSCWZ4uzp+vFuktDWr1Fa2P3dBUDbfGQnnWlovkziZ3Gx wo+KYQxUdd9NikgxsTZwH2Rt9JjAV9PfO8gtDd3gY8d/fszn4So2f/kIwsDDcB+OHL7P oCze3dmfAabrEIfYfMUE8bE9uC6sTm7OvYBEUSADECg0SDihcAQrw1Z57wIF6VXYk0Qv jQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2f62rv9w6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Dec 2017 17:34:51 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBVHYoPi027352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 31 Dec 2017 17:34:50 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBVHYnoe007836; Sun, 31 Dec 2017 17:34:49 GMT In-Reply-To: <83bmieeuhm.fsf@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4627.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8761 signatures=668650 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712310262 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:141654 Archived-At: > > > 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?) >=20 > 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. Thank you. I assume that you'll mention this in NEWS. I wonder whether it is something that I should set in `setup-cygwin.el' or just tell users there, in a comment, that they will need to customize it. Leavning aside, for the moments, arguments about whether code should mess with user options, can you say when it is appropriate, typically, for a Windows user to customize that option? Does it have to do with whether Cygwin is used, for instance (with a non-Cygwin Emacs)? Or does the option default value depend on the platform perhaps?=20