From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Dokos Newsgroups: gmane.emacs.bugs Subject: bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters Date: Wed, 2 Jul 2014 15:59:23 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1135ed222bc2d704fd3b54bb X-Trace: ger.gmane.org 1404331937 32018 80.91.229.3 (2 Jul 2014 20:12:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 20:12:17 +0000 (UTC) To: 17903@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 22:12:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2Qsz-0006AN-7z for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 22:12:09 +0200 Original-Received: from localhost ([::1]:56269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qsy-0002Hu-Oq for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 16:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qsv-0002Hm-5b for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 16:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Qss-0007Bl-TE for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 16:12:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qss-0007Bh-QB for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2Qss-000222-BA for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nick Dokos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jul 2014 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14043319207795 (code B ref -1); Wed, 02 Jul 2014 20:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2014 20:12:00 +0000 Original-Received: from localhost ([127.0.0.1]:40758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Qsk-00021a-Oj for submit@debbugs.gnu.org; Wed, 02 Jul 2014 16:11:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40265) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Qgn-0001YF-UB for submit@debbugs.gnu.org; Wed, 02 Jul 2014 15:59:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Qgh-0003aS-AH for submit@debbugs.gnu.org; Wed, 02 Jul 2014 15:59:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qgh-0003aO-6H for submit@debbugs.gnu.org; Wed, 02 Jul 2014 15:59:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qgg-0000Fo-6j for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:59:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Qgf-0003Ye-5x for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:59:26 -0400 Original-Received: from mail-ve0-x22e.google.com ([2607:f8b0:400c:c01::22e]:60527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Qgf-0003Y9-0m for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:59:25 -0400 Original-Received: by mail-ve0-f174.google.com with SMTP id jx11so11996333veb.33 for ; Wed, 02 Jul 2014 12:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HV1mF0rUlCeFfR4mXlpH0m7ZmM88R4cMxoeO8KySxDI=; b=T1Zrrq5OsI1m2h72AbSqJ87AHRaMWVtc1eR2hdJwsrLtX450rcmroLHvhv919f5j4Q 1a3A/4O1D5bDXi5QeWa6UuU2yIJ2gV2wD3WYhV2lEnkAXMngsmq0riFh7oZBY/sjTBrd p2D7yUGGFdmPzy+oIxCyq18mI6qisQer/0CuAQ8kvY0nU9Q7/jzflS6bwMxoRF9IXgTr zY1D0W1LIVubbU4fnOEq5bPayhbrIgoD8QCSDia31xxJf3mpPYVYaUZOnc1fJjRiDq3/ cVV6MGpCHS5LAgmIfZP1Gfm3c0dIxsBwBgs/Cfd9gjautVq2AP1aZwOdvh2wk96AqFzj Pa6A== X-Received: by 10.52.252.226 with SMTP id zv2mr5830vdc.19.1404331163892; Wed, 02 Jul 2014 12:59:23 -0700 (PDT) Original-Received: by 10.220.135.209 with HTTP; Wed, 2 Jul 2014 12:59:23 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 02 Jul 2014 16:11:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91116 Archived-At: --001a1135ed222bc2d704fd3b54bb Content-Type: text/plain; charset=UTF-8 My current-language-environment is "UTF-8" and every time I do M-x man to get a new manpage, I get the error Man-softhyphen-to-minus: Args out of range: "UTF-8", 0, 6 Here's a patch (although this is sent with gmail - don't ask - and it might be mangled beyond recognition): diff --git a/lisp/man.el b/lisp/man.el index 4b23530..24daca1 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -1177,7 +1177,8 @@ See the variable `Man-notify-method' for the different notification behaviors." ;; \255 is SOFT HYPHEN in Latin-N. Versions of Debian man, at ;; least, emit it even when not in a Latin-N locale. (unless (eq t (compare-strings "latin-" 0 nil - current-language-environment 0 6 t)) + current-language-environment + 0 (min 6 (length current-language-environment)) t)) (goto-char (point-min)) (let ((str "\255")) (if enable-multibyte-characters --001a1135ed222bc2d704fd3b54bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
My current-language-environment is "UTF-8&quo= t; and every time I do M-x man to get a new manpage, I get the error
<= div class=3D"gmail_default" style=3D"font-family:'courier new',mono= space">
Man-softhyphen-to-minus: Args ou= t of range: "UTF-8", 0, 6

Here&#= 39;s a patch (although this is sent with gmail - don't ask - and it mig= ht be mangled beyond recognition):

diff = --git a/lisp/man.el b/lisp/man.el
index 4b23530..24daca1 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1177,7 +1177,8 @@ = See the variable `Man-notify-method' for the different notification beh= aviors."
=C2=A0 =C2=A0;; \255 is SO= FT HYPHEN in Latin-N. =C2=A0Versions of Debian man, at
=C2=A0 =C2=A0;; least, emit it eve= n when not in a Latin-N locale.
=C2=A0 =C2=A0(unless (eq t= (compare-strings "latin-" 0 nil
- = current-language-environment 0 6 t))
+ current-language-environment
+ 0 (min 6 (length current-language-environment)) t= ))
=C2=A0 =C2=A0 =C2=A0(goto-= char (point-min))
=C2=A0 =C2=A0 =C2=A0(let ((str "\255"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(if enab= le-multibyte-characters

=
--001a1135ed222bc2d704fd3b54bb--