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

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

Fwd: utf-8 encoding problem


From: Kevin Rodgers
Subject: Fwd: utf-8 encoding problem
Date: Mon, 02 Feb 2004 14:50:20 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

When I visit the emacs-bug-with-utf8.tar.gz file that Prof. Dr. Doeringer
attached with emacs-21.3.1 -q --no-site-file, then visit utf8.in or utf8.in.2
with `C-x RET c utf-8 RET f' I get this error:

Debugger entered--Lisp error: (wrong-type-argument integerp [emacs-mule-unix emacs-mule-dos emacs-mule-mac]) coding-system-change-eol-conversion(utf-8 [emacs-mule-unix emacs-mule-dos emacs-mule-mac])
  tar-extract()
  call-interactively(tar-extract)
  universal-coding-system-argument()
* call-interactively(universal-coding-system-argument)

That's because tar-extract doesn't handle the case where coding-system-eol-type
returns a vector for the detected coding system.  Here's a patch:

*** emacs-21.3/lisp/tar-mode.el.orig    Sat May 18 13:48:23 2002
--- emacs-21.3/lisp/tar-mode.el Mon Feb  2 14:47:08 2004
***************
*** 726,734 ****
1 (min 16384 (point-max)) t)))
                  (if coding
                      (or (numberp (coding-system-eol-type coding))
! (setq coding (coding-system-change-eol-conversion ! coding ! (coding-system-eol-type detected))))
                    (setq coding
                          (or (find-new-buffer-file-coding-system detected)
                              (let ((file-coding
--- 726,736 ----
1 (min 16384 (point-max)) t)))
                  (if coding
                      (or (numberp (coding-system-eol-type coding))
! (and (numberp (coding-system-eol-type detected)) ! (setq coding ! (coding-system-change-eol-conversion ! coding ! (coding-system-eol-type detected)))))
                    (setq coding
                          (or (find-new-buffer-file-coding-system detected)
                              (let ((file-coding

--
Kevin Rodgers
--- Begin Message --- Subject: utf-8 encoding problem Date: Sun, 1 Feb 2004 13:38:22 +0100 (MET)
To: address@hidden
Subject: utf8
--text follows this line--
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (powerpc-apple-darwin6.0)
 of 2002-09-04 on gump
configured using `configure  --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --without-x'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Hi,
I have encountered a problem with the utf-8 encoding in emacs

In essence (please consult the single-line files that come enclosed):
 I load the file utf8.in.2 into emacs and then write it out to utf8.goodout.2 - 
things are fine!
 This file contains just all umlauts.

 I load the file utf8.in into emacs and write it out to utf8.badout - when 
emacs prompts
   me for the encoding I select "utf-8". Things are not good then.
   This file (utf8.in) contains the name Oeztuerk, where Oe and ue are written 
as umlauts

The files utf8.in and utf8.in.2 where created with TextEdit on a Mac using 
UTF-8 encoding and
then checked for proper encoding using hexdump -C. To my knowledge, the files 
are ok.

I hope this is of help. Please contact me if you need more information.
Yours truly, willi doeringer

-------------------------------------------------------------------------------
W. Doeringer, FH Worms, Erenburger Str. 19, D-67549 Worms, Germany.
Tel. +49-6241-509-214, Fax. +49-6241-509-221

Attachment: emacs-bug-with-utf8.tar.gz
Description: Binary data


--- End Message ---

reply via email to

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