From: Eli Zaretskii <eliz@is.elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: auto-detecting encoding for XML
Date: Mon, 20 May 2002 07:48:27 +0300 (IDT) [thread overview]
Message-ID: <Pine.SUN.3.91.1020520074321.23820B-100000@is> (raw)
In-Reply-To: <1021775271.29752.2282.camel@space-ghost>
On 18 May 2002, Colin Walters wrote:
> + (if (re-search-forward "encoding=\"\\(.+?\\)\"" end t)
> + (let ((match (downcase (match-string 1))))
> + ;; FIXME: what other encodings are valid, and how can we
> + ;; translate them to the names of coding systems?
> + (cond ((string= match "utf-8")
> + 'utf-8)
> + ((string-match "iso-8859-[[:digit:]]+" match)
> + (intern match))
> + (t nil)))
Why didn't you use `intern' in all cases? If you are bothered by the
possibility that the resulting symbol is not a valid coding system, you
can check that with coding-system-p.
Btw, does this change honor "C-x RET c"?
next prev parent reply other threads:[~2002-05-20 4:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-19 2:27 auto-detecting encoding for XML Colin Walters
2002-05-19 23:13 ` Stefan Monnier
2002-05-20 4:53 ` Eli Zaretskii
2002-05-20 7:04 ` Colin Walters
2002-05-20 14:23 ` Stefan Monnier
2002-05-20 22:32 ` Colin Walters
2002-05-21 19:43 ` Stefan Monnier
2002-05-20 10:10 ` Kai Großjohann
2002-05-20 12:59 ` Eli Zaretskii
2002-05-20 14:31 ` Kai Großjohann
2002-05-20 14:32 ` Eli Zaretskii
2002-05-20 14:18 ` Stefan Monnier
2002-05-20 14:29 ` Kai Großjohann
2002-05-20 14:32 ` Stefan Monnier
2002-05-20 15:26 ` Kai Großjohann
2002-05-20 22:18 ` Colin Walters
2002-05-20 22:09 ` Colin Walters
2002-05-20 4:48 ` Eli Zaretskii [this message]
2002-05-20 7:07 ` Colin Walters
2002-05-20 14:48 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SUN.3.91.1020520074321.23820B-100000@is \
--to=eliz@is.elta.co.il \
--cc=emacs-devel@gnu.org \
/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 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).