From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25203: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el Date: Fri, 16 Dec 2016 10:04:06 +0200 Message-ID: <83r3588fm1.fsf@gnu.org> References: <1131071276.6677912.1481842923916.ref@mail.yahoo.com> <1131071276.6677912.1481842923916@mail.yahoo.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481875572 20519 195.159.176.226 (16 Dec 2016 08:06:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 08:06:12 +0000 (UTC) Cc: cjk-list@nongnu.org, by@moscito.org, 25203@debbugs.gnu.org To: Hin-Tak Leung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 09:06:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHnWq-0004nw-K5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 09:06:08 +0100 Original-Received: from localhost ([::1]:58945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnWv-00026W-3Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 03:06:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnWn-000214-5z for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:06:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHnWk-000888-3X for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:06:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHnWk-000882-0V for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cHnWj-0005iU-Pu for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 03:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2016 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25203-submit@debbugs.gnu.org id=B25203.148187550521906 (code B ref 25203); Fri, 16 Dec 2016 08:06:01 +0000 Original-Received: (at 25203) by debbugs.gnu.org; 16 Dec 2016 08:05:05 +0000 Original-Received: from localhost ([127.0.0.1]:43542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHnVo-0005hF-Nz for submit@debbugs.gnu.org; Fri, 16 Dec 2016 03:05:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHnVn-0005gj-4N for 25203@debbugs.gnu.org; Fri, 16 Dec 2016 03:05:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHnVh-0007Hu-9a for 25203@debbugs.gnu.org; Fri, 16 Dec 2016 03:04:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHnVY-000729-TE; Fri, 16 Dec 2016 03:04:48 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2090 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cHnVY-0006wI-3E; Fri, 16 Dec 2016 03:04:48 -0500 In-reply-to: <1131071276.6677912.1481842923916@mail.yahoo.com> (message from Hin-Tak Leung on Thu, 15 Dec 2016 23:02:03 +0000 (UTC)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127079 Archived-At: > Date: Thu, 15 Dec 2016 23:02:03 +0000 (UTC) > From: Hin-Tak Leung > Cc: cjk-list@nongnu.org, by@moscito.org > > Sorry, should be this (note "locale-coding-system"): > > --- 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 locale-coding-system)) > + (message "Converting: %2d%%" > + (/ (* 100 (point)) (point-max)))))) > > ;; Advance to the next character and loop. > (forward-char 1)) Sorry, I don't understand the question. Can you elaborate? locale-coding-system is a variable whose value is the encoding supported by the locale in which Emacs was started, and this it should be appropriate for writing text to the user's terminal.