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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 54591 <at> debbugs.gnu.org
Subject: bug#54591: 29.0.50; sqlite-select returns blob result as multibyte string
Date: Sun, 27 Mar 2022 09:40:29 +0300
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Sat, 26 Mar 2022 22:49:21 -0700
> 
> 
> I’m trying make use of sqlite functionalities added recently and found
> that the query result of blob type entries are multibyte string rather
> than unibyte. That caused issues when I tried to create image out of the
> query result: the image appears to be broken, even though the data is
> good. Adding string-as-unibyte solves the issue, but I guess the
> return value of a blob entry is probably best to be unibyte by default?

If we want to support non-text data in a blob, then yes, I think you
are right.




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.