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

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

decode-coding-inserted-region does not decode


From: SAITO Takuya
Subject: decode-coding-inserted-region does not decode
Date: Sun, 21 Sep 2003 15:21:04 +0900 (JST)

When I start emacs with "emacs -q -f auto-compression-mode"
and visit the gzipped Japanese text file with C-xC-f,
Japanese characters are not displayed correctly.

How about this patch?

Index: lisp/international/mule.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule.el,v
retrieving revision 1.191
diff -u -r1.191 mule.el
--- lisp/international/mule.el  1 Sep 2003 15:45:28 -0000       1.191
+++ lisp/international/mule.el  19 Sep 2003 16:51:43 -0000
@@ -1850,9 +1850,9 @@
            (setq coding (funcall set-auto-coding-function
                                  filename (- (point-max) (point-min)))))
        (or coding
-           (setq coding (find-operation-coding-system
-                         'insert-file-contents
-                         filename visit beg end replace)))
+           (setq coding (car (find-operation-coding-system
+                              'insert-file-contents
+                              filename visit beg end replace))))
        (if (coding-system-p coding)
            (or enable-multibyte-characters
                (setq coding


In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-09-20 on reed
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: ja_JP.eucJP
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: ja_JP.eucJP
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t




reply via email to

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