<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>Package: postgis<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Version: 3.5.2+dfsg-1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Severity: important<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Architecture: arm64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Dear Maintainer,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>When trying to enable the PostGIS extension on a fresh PostgreSQL 17 installation running on Debian Trixie (arm64 / Raspberry Pi 5), the database throws the following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>ERROR: invalid byte sequence for encoding "UTF8": 0x00<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>We tracked this down to a physical null-byte (\x00) inside the SQL extension script provided by the package.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>File: /usr/share/postgresql/17/extension/postgis--3.5.2.sql<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Location: Inside the definition string for EPSG 8796 (around the string "AUTHORITY["EPSG","42")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Running the following command confirms the physical presence of the null-byte in the file:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>grep -Pa '\x00' /usr/share/postgresql/17/extension/postgis--3.5.2.sql<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Workaround:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Removing the null-byte with 'tr -d "\000"' and manually fixing the resulting unterminated string/syntax errors at the end of the file allowed the extension to load successfully. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>It seems there was a compilation or packaging error when building this specific version for arm64.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal>Roland Wagner<o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>Gemini helped me, its really a great tool. Many thanks also to you, because you maintain also a great tool!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>[Dein Name]<o:p></o:p></span></p></div></body></html>