* Fwd: utf-8 encoding problem
@ 2004-02-02 21:50 Kevin Rodgers
0 siblings, 0 replies; only message in thread
From: Kevin Rodgers @ 2004-02-02 21:50 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]
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
[-- Attachment #2: utf-8 encoding problem --]
[-- Type: message/rfc822, Size: 5047 bytes --]
[-- Attachment #2.1.1: Type: TEXT/PLAIN, Size: 1870 bytes --]
To: bug-gnu-emacs@gnu.org
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 bug-gnu-emacs@gnu.org 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 #2.1.2: Type: APPLICATION/octet-stream, Size: 826 bytes --]
[-- Attachment #3: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-02 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02 21:50 Fwd: utf-8 encoding problem Kevin Rodgers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).