From: Jesper Harder <harder@myrealbox.com>
Subject: Re: charset=macintosh
Date: Sun, 09 Mar 2003 18:07:56 +0100 [thread overview]
Message-ID: <m3llzo31ub.fsf@defun.localdomain> (raw)
Simon Josefsson <jas@extundo.com> writes:
> Jesper Harder <harder@myrealbox.com> 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.
next reply other threads:[~2003-03-09 17:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 17:07 Jesper Harder [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-07 17:39 charset=macintosh Karl Eichwalder
2003-03-07 18:25 ` charset=macintosh Simon Josefsson
2003-03-07 19:30 ` charset=macintosh Karl Eichwalder
2003-03-07 19:45 ` charset=macintosh Jesper Harder
2003-03-07 20:40 ` charset=macintosh Karl Eichwalder
2003-03-07 23:05 ` charset=macintosh Jesper Harder
2003-03-08 14:47 ` charset=macintosh Kai Großjohann
2003-03-08 15:47 ` charset=macintosh Jorge Godoy
2003-03-08 15:55 ` charset=macintosh Simon Josefsson
2003-03-08 19:52 ` charset=macintosh Jesper Harder
2003-03-08 20:09 ` charset=macintosh Simon Josefsson
2003-03-08 16:00 ` charset=macintosh Kai Großjohann
2003-03-08 16:47 ` charset=macintosh Frank Schmitt
2003-03-08 19:44 ` charset=macintosh Simon Josefsson
2003-03-08 19:47 ` charset=macintosh Jesper Harder
2003-03-08 20:17 ` charset=macintosh Simon Josefsson
2003-03-09 3:56 ` charset=macintosh Jesper Harder
2003-03-09 11:48 ` charset=macintosh Simon Josefsson
2003-03-14 23:02 ` charset=macintosh Jesper Harder
2003-03-07 19:47 ` charset=macintosh Simon Josefsson
2003-03-07 21:02 ` charset=macintosh Karl Eichwalder
2003-03-07 21:24 ` charset=macintosh Simon Josefsson
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=m3llzo31ub.fsf@defun.localdomain \
--to=harder@myrealbox.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.
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 NNTP newsgroup(s).