From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50728 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: charset=macintosh Date: Sun, 09 Mar 2003 18:07:56 +0100 Organization: http://purl.org/harder/ Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1047231571 5120 80.91.224.249 (9 Mar 2003 17:39:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2003 17:39:31 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Sun Mar 09 18:39:29 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18s4lk-0001KP-00 for ; Sun, 09 Mar 2003 18:39:29 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18s4lo-0002qS-00; Sun, 09 Mar 2003 11:39:32 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 09 Mar 2003 11:40:33 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA14613 for ; Sun, 9 Mar 2003 11:40:21 -0600 (CST) Original-Received: (qmail 62678 invoked by alias); 9 Mar 2003 17:39:15 -0000 Original-Received: (qmail 62673 invoked from network); 9 Mar 2003 17:39:15 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 9 Mar 2003 17:39:15 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18s56m-00085Q-00 for ; Sun, 09 Mar 2003 19:01:12 +0100 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 29 Original-NNTP-Posting-Host: 0xc3d7e0f7.esnxr4.ras.tele.dk Original-X-Trace: quimby.gnus.org 1047232872 31087 195.215.224.247 (9 Mar 2003 18:01:12 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 9 Mar 2003 18:01:12 GMT X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; writes: > Jesper Harder writes: >> But *oops*, `detect-coding-string' doesn't think that euc-kr is a >> possible charset for a Korean string encoded in euc-kr: >> >> (detect-coding-string (encode-coding-string "¾È³ç" 'euc-kr)) >> => (iso-latin-1 iso-latin-1 raw-text japanese-shift-jis >> chinese-big5 no-conversion) >> >> So the above approach would fail. > > I wonder if this isn't another bug. I don't know. A lot of the MULE stuff is so under-documented. The documentation for `detect-coding-string' doesn't actually promise to return _all_ possible coding systems. It turns out that it _can_ detect euc-kr (AKA korean-iso-8bit) if you choose the right language environment: (set-language-environment "Korean") (detect-coding-string (encode-coding-string "¾È³ç" 'euc-kr)) => (korean-iso-8bit iso-latin-1 raw-text chinese-big5 no-conversion) > Maybe you could report it as a bug? I'll do that.