all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters
@ 2014-07-02 19:59 Nick Dokos
  2014-07-02 20:45 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2014-07-02 19:59 UTC (permalink / raw)
  To: 17903

[-- 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 --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-21  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 19:59 bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters Nick Dokos
2014-07-02 20:45 ` Glenn Morris
2014-07-08  1:59   ` Glenn Morris
2014-07-21  9:50     ` Glenn Morris

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.