[Top][All Lists]

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

Re: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el

From: Hin-Tak Leung
Subject: Re: [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)
               (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.

reply via email to

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