downloaded sqlite zip contains invalid character
(1) By aiyolo on 2024-09-28 14:47:02 [source]
I downloaded the https://sqlite.org/2024/sqlite-amalgamation-3450100.zip from sqlite official site, then I extracted the zip package, in the line 26338 of the file shell.c, it writes static const char *zBomUtf8 = "\xef\xbb\xbf";
This line has an invalid charater at the right side of xbf, that causes that it can't be built.
I first found this bug in the conan forum when I try to install a poco libraries that has a dependecies with sqlite3. I also reported this problem in the coan issue https://github.com/conan-io/conan/issues/17078.
I hope it can be fixed in the near future, thank you!
(2) By Stephan Beal (stephan) on 2024-09-28 15:19:35 in reply to 1 [link] [source]
I hope it can be fixed in the near future, thank you!
Can you tell us which compliler is choking on this? That line is still part of the 3.46 and pending 3.47 builds and we have yet to hear a single complaint about it yet.
(3.1) By Larry Brasfield (larrybr) on 2024-09-28 19:58:02 edited from 3.0 in reply to 1 [link] [source]
I downloaded the very same shell.c and examined the complaint subject line (which, it seems, you accurately quote excepting bounding whitespace.
There is no invalid character at the right side of "xbf". There are only the two characters quoted (double-quote then semicolon) followed by a newline.
Any tool which attempts to impose content restrictions on C string literals, such that it cannot accept that line, is broken. Complaints and bug reports regarding such misbehavior should be taken to the purveyor(s) or author(s) of such a broken tool.
When examined directly with od (a file dump utility), without an intervening grep, or when Emacs processes the line, there was an actual UTF-8 BOM before the closing quote in that literal. It has been removed in the latest check-in.
(4) By Bo Lindbergh (_blgl_) on 2024-09-28 20:24:57 in reply to 3.1 [link] [source]
Detectable from within the built shell too:
sqlite> .once -bom "| hexdump -C"
sqlite> .print Hello, World!
00000000 ef bb bf ef bb bf 48 65 6c 6c 6f 2c 20 57 6f 72 |......Hello, Wor|
00000010 6c 64 21 0a |ld!.|
00000014
sqlite>
(5) By aiyolo on 2024-09-29 07:57:17 in reply to 3.1 [link] [source]
Thank you all for the prompt fix of this issue.