GNU bug report logs - #54591
29.0.50; sqlite-select returns blob result as multibyte string

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Sun, 27 Mar 2022 05:50:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 54591 <at> debbugs.gnu.org, casouri <at> gmail.com
Subject: Re: bug#54591: 29.0.50; sqlite-select returns blob result as
 multibyte string
Date: Sun, 27 Mar 2022 17:56:05 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Yuan Fu <casouri <at> gmail.com>,  54591 <at> debbugs.gnu.org
> Date: Sun, 27 Mar 2022 20:04:41 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > If we want to support non-text data in a blob, then yes, I think you
> > are right.
> 
> BTW, I thought things can go awry quickly if misformed sequences find
> their way into a multibyte string, so any data which isn't decoded or
> guaranteed to be valid in Emacs's internal superset of Unicode shouldn't
> be allowed to get into in a multibyte string.
> 
> Is that correct?

No.  Emacs converts any invalid byte sequences to raw bytes, which
have a special internal representation that cannot harm us.




This bug report was last modified 3 years and 22 days ago.

Previous Next


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