emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17903: closed (Man-softhyphen-to-minus error when


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17903: closed (Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters)
Date: Sat, 02 Aug 2014 16:23:02 +0000

Your message dated Sat, 02 Aug 2014 09:21:54 -0700
with message-id <address@hidden>
and subject line Re: [Noah Friedman] Man-softhyphen-to-minus
has caused the debbugs.gnu.org bug report #17903,
regarding Man-softhyphen-to-minus error when current-language-environment is 
shorter than 6 characters
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17903: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17903
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters Date: Wed, 2 Jul 2014 15:59:23 -0400
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


--- End Message ---
--- Begin Message --- Subject: Re: [Noah Friedman] Man-softhyphen-to-minus Date: Sat, 02 Aug 2014 09:21:54 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In trunk bzr 117628 I fixed this by changing compare-strings to silently bring too-large positive end values into range, making it more compatible with traditional behavior. If we were designing compare-strings from scratch the extra checking could be helpful, but I doubt whether we have the time to find and fix all the contrary uses now.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]