From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Fwd: utf-8 encoding problem
Date: Mon, 02 Feb 2004 14:50:20 -0700 [thread overview]
Message-ID: <401EC61C.9000508@yahoo.com> (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
reply other threads:[~2004-02-02 21:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=401EC61C.9000508@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.