GNU bug report logs - #25203
25.1; crash during message, infinite recursion

Previous Next

Package: emacs;

Reported by: Hin-Tak Leung <hintak.leung <at> gmail.com>

Date: Thu, 15 Dec 2016 00:56:02 UTC

Severity: normal

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Hin-Tak Leung <htl10 <at> users.sourceforge.net>
To: Werner LEMBERG <wl <at> gnu.org>,  <25203 <at> debbugs.gnu.org>
Cc: cjk-list <at> nongnu.org, by <at> moscito.org
Subject: bug#25203: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el
Date: Thu, 15 Dec 2016 22:57:50 +0000 (UTC)
Thanks for the advice from Eli Zaretskii
( https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25203#11 )

I think I fixed one breakage of cjk-enc.el with emacs 25. It is doing a "percentage progress report"
for any sizeable input. With the following change:

--- a/utils/lisp/emacs/cjk-enc.el
+++ b/utils/lisp/emacs/cjk-enc.el
@@ -879,8 +879,9 @@
         (if (> (- (point) last-pos) 1000)
             (progn
               (setq last-pos (point))
-              (message "Converting: %2d%%"
-                       (/ (* 100 (point)) (point-max)))))
+              (let ((coding-system-for-write 'cjk-coding))
+                (message "Converting: %2d%%"
+                         (/ (* 100 (point)) (point-max))))))
 
         ;; Advance to the next character and loop.
         (forward-char 1))

 I could get emacs 25 to run cjk-enc.el correctly to process Thai tis620 and mule encoded inputs now.

I still can't process Big5 input correctly - but thanks, the crash is gone -, Big5 input
seems to be sensitive to LANG/LC_*.
The original poster (not fully specified LANG/LC_*=zh_TW.Big5 ) can run it with 24.x but
I (LANG/LC_*=en_GB.UTF-8) can't currently beyond 22.x. I think I was able with 23.x ;
some some of the sensivity of  cjk-enc.el to LANG/LC_* needs looking /documenting at better.
  




This bug report was last modified 8 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.