[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54591: 29.0.50; sqlite-select returns blob result as multibyte strin
From: |
Eli Zaretskii |
Subject: |
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@yahoo.com>
> Cc: Yuan Fu <casouri@gmail.com>, 54591@debbugs.gnu.org
> Date: Sun, 27 Mar 2022 20:04:41 +0800
>
> Eli Zaretskii <eliz@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.