unofficial mirror of bug-gnu-emacs@gnu.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

* bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-07-02 20:45 UTC (permalink / raw)
  To: 17903; +Cc: Nick Dokos


First fallout from "Do not allow out-of-range character position in
Fcompare_strings".

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00470.html





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

* bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters
  2014-07-02 20:45 ` Glenn Morris
@ 2014-07-08  1:59   ` Glenn Morris
  2014-07-21  9:50     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-07-08  1:59 UTC (permalink / raw)
  To: 17903, dmantipov; +Cc: Nick Dokos

Glenn Morris wrote:

> First fallout from "Do not allow out-of-range character position in
> Fcompare_strings".
>
> Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00470.html

Dmitry, please could you fix this? You'll also need to keep an eye out
for future reports with these symptoms. (Are you sure this change is
worth the pain it will cause?)

BTW, this is another change that needs an "incompatible change" NEWS entry.





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

* bug#17903: Man-softhyphen-to-minus error when current-language-environment is shorter than 6 characters
  2014-07-08  1:59   ` Glenn Morris
@ 2014-07-21  9:50     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2014-07-21  9:50 UTC (permalink / raw)
  To: dmantipov; +Cc: 17903


Hi - just a reminder about this issue.

Glenn Morris wrote:

>> First fallout from "Do not allow out-of-range character position in
>> Fcompare_strings".
>>
>> Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00470.html
>
> Dmitry, please could you fix this? You'll also need to keep an eye out
> for future reports with these symptoms. (Are you sure this change is
> worth the pain it will cause?)
>
> BTW, this is another change that needs an "incompatible change" NEWS entry.





^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).