GNU bug report logs - #70356
30.0.50; [wishlist] Expose UTF-8 parse error to Lisp

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Fri, 12 Apr 2024 16:00:02 UTC

Severity: wishlist

Tags: notabug

Found in version 30.0.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Michael Albinus <michael.albinus <at> gmx.de>,
 70356 <at> debbugs.gnu.org
Subject: Re: bug#70356: 30.0.50; [wishlist] Expose UTF-8 parse error to Lisp
Date: Sat, 13 Apr 2024 09:41:52 +0200
On Apr 13 2024, Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> What I'd like to get is a function, which takes a sequence of bytes as
> arguments, and which indicates, whether this is a valid UTF-8 byte
> sequence. This indication could be an error, or a respective return
> value.

That function could do the decoding and then check whether the result
contains any eight-bit characters (which mark the non-decodable parts).

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 1 year and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.