all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jesper Harder <harder@ifa.au.dk>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: detect-coding-string doesn't return all possibilities
Date: Sat, 15 Mar 2003 00:04:08 +0100	[thread overview]
Message-ID: <m33clp5z4n.fsf@defun.localdomain> (raw)
In-Reply-To: <200303140455.NAA22653@etlken.m17n.org> (Kenichi Handa's message of "Fri, 14 Mar 2003 13:55:17 +0900 (JST)")

Kenichi Handa <handa@m17n.org> writes:

> Jesper Harder <harder@ifa.au.dk> writes:
>
>> Do you know of any other way to decide if using a given coding system
>> for decoding a string would give a valid result?

> How about this?
>
> (defun decode-coding-string-safely (string coding-system)
>   "Decode STRING by CODING-SYSYTEM and return the result.
> If STRING contains invalid byte sequence for CODING-SYSTEM, return nil."

Execellent.  Thank you!

      reply	other threads:[~2003-03-14 23:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=m33clp5z4n.fsf@defun.localdomain \
    --to=harder@ifa.au.dk \
    --cc=bug-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.