From: Jesper Harder <harder@ifa.au.dk>
Subject: detect-coding-string doesn't return all possibilities
Date: Sun, 09 Mar 2003 18:07:41 +0100 [thread overview]
Message-ID: <m3smtw31uq.fsf@defun.localdomain> (raw)
`detect-coding-string' doesn't return all possible coding systems for a
string. For example:
(detect-coding-string (encode-coding-string "안녕" 'korean-iso-8bit))
=> (iso-latin-1 iso-latin-1 raw-text chinese-big5 no-conversion)
Clearly korean-iso-8bit is a possible coding system, but this is not
detected.
The same bug happens in CVS Emacs.
In GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2002-04-09 on porky.devel.redhat.com
configured using `configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound'
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: en_US.iso88591
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
next reply other threads:[~2003-03-09 17:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 17:07 Jesper Harder [this message]
2003-03-13 11:34 ` detect-coding-string doesn't return all possibilities Kenichi Handa
[not found] ` <mailman.3161.1047557974.21513.bug-gnu-emacs@gnu.org>
2003-03-14 4:34 ` Jesper Harder
2003-03-14 4:55 ` Kenichi Handa
2003-03-14 23:04 ` Jesper Harder
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=m3smtw31uq.fsf@defun.localdomain \
--to=harder@ifa.au.dk \
/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.