unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* detect-coding-string doesn't return all possibilities
@ 2003-03-09 17:07 Jesper Harder
  2003-03-13 11:34 ` Kenichi Handa
       [not found] ` <mailman.3161.1047557974.21513.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Jesper Harder @ 2003-03-09 17:07 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-14 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09 17:07 detect-coding-string doesn't return all possibilities Jesper Harder
2003-03-13 11:34 ` 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

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).