From: Nick Dokos <ndokos@gmail.com>
To: 17903@debbugs.gnu.org
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 [thread overview]
Message-ID: <CANU-iVAKRj=LwZSKbREUV2idnFHrUNds7RhHcv86WiwTgya9VQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2534 bytes --]
next reply other threads:[~2014-07-02 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 19:59 Nick Dokos [this message]
2014-07-02 20:45 ` bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters Glenn Morris
2014-07-08 1:59 ` Glenn Morris
2014-07-21 9:50 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANU-iVAKRj=LwZSKbREUV2idnFHrUNds7RhHcv86WiwTgya9VQ@mail.gmail.com' \
--to=ndokos@gmail.com \
--cc=17903@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.