From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.bugs Subject: detect-coding-string doesn't return all possibilities Date: Sun, 09 Mar 2003 18:07:41 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1047231534 5002 80.91.224.249 (9 Mar 2003 17:38:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2003 17:38:54 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 09 18:38:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18s4lA-0001IU-00 for ; Sun, 09 Mar 2003 18:38:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18s4la-0000bm-00 for gnu-bug-gnu-emacs@m.gmane.org; Sun, 09 Mar 2003 12:39:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18s4l3-0000BS-00 for bug-gnu-emacs@gnu.org; Sun, 09 Mar 2003 12:38:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18s4ky-0008Jn-00 for bug-gnu-emacs@gnu.org; Sun, 09 Mar 2003 12:38:42 -0500 Original-Received: from pfepa.post.tele.dk ([193.162.153.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18s4kw-0007hQ-00 for bug-gnu-emacs@gnu.org; Sun, 09 Mar 2003 12:38:38 -0500 Original-Received: from [195.215.224.247] (0xc3d7e0f7.esnxr4.ras.tele.dk [195.215.224.247]) by pfepa.post.tele.dk (Postfix) with ESMTP id B00B54802D7 for ; Sun, 9 Mar 2003 18:38:24 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4588 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4588 `detect-coding-string' doesn't return all possible coding systems for a string. For example: (detect-coding-string (encode-coding-string "=BE=C8=B3=E7" 'korean-iso-8bit= )) =3D> (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=3D/usr --exec-prefi= x=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --da= tadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib --libexe= cdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/usr/com --ma= ndir=3D/usr/share/man --infodir=3D/usr/share/info --with-gcc --with-pop --w= ith-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