[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqlite3
From: |
Lars Ingebrigtsen |
Subject: |
Re: sqlite3 |
Date: |
Sun, 12 Dec 2021 08:48:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> The documentation says "UTF-8", and my reading of that is that
> anything outside of that is likely to trigger "undefined behavior".
> There's also a question of whether we, the Emacs project, want to
> force using only valid UTF-8 in those interfaces.
As you can see from the tests, putting binary data into a TEXT field
works fine, so I think the documentation might be underdefined.
(And I think we do want to be able to put binary data into the
database.)
> A related issue is with encoding file names, which are also expected
> to be in UTF-8. I don't know what will happen if a file name includes
> eight-bit raw bytes, for example. At least in the Windows code in
> sqlite3, which I did read, the result will probably be a failure to
> access the file.
Yeah, file names are a separate issue, and we should encode them in the
usual ways we do.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: sqlite3, (continued)
- Re: sqlite3, Eli Zaretskii, 2021/12/07
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/08
- Re: sqlite3, Eli Zaretskii, 2021/12/08
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/09
- Re: sqlite3, Eli Zaretskii, 2021/12/10
- Re: sqlite3, Eli Zaretskii, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Eli Zaretskii, 2021/12/12
- Re: sqlite3,
Lars Ingebrigtsen <=
- Re: sqlite3, Eli Zaretskii, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Eli Zaretskii, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Eli Zaretskii, 2021/12/13
- Re: sqlite3, Eli Zaretskii, 2021/12/13
- Re: sqlite3, Eli Zaretskii, 2021/12/06
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/06
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/06