Authentication-Results: mail-b.sr.ht; dkim=pass header.d=alexwennerberg.com header.i=@alexwennerberg.com Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by mail-b.sr.ht (Postfix) with ESMTPS id 9D3C811EFC3 for <~adnano/go-gemini-devel@lists.sr.ht>; Sun, 31 Oct 2021 16:26:19 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexwennerberg.com; s=key1; t=1635697574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MJbZ42GSy83VWxaQE1tJJsqd2/PrBAf69H9iC0Bk41U=; b=TBW17TKGj6zZqqzcLMp8AtpsSjC10bcyaiQluTJL+DjY2cj17N27972lCe1zP4uSISno7Y 6md0AEMO//8b0Py3WgrSEF0O3YgDMLzAzfIe6Y3S5LMvkMDvLkMUyMpPVxuwddYckEOLJY z+63Y7JzBCPLjkKP2Da9sTescVFnsxBLMPiFkJoq6aiR17ebc5YU8BoevJankm+LPSUBnV 9/ibe44PyGO+Ulf2y9UiqXmVNifs1uu62Ssy+LabO7Ke11TmWXGvu3JUS6OcSQRtgvRP7t mIqTv9oTPEtAVIxEdv/+RxL0ENgf4/EokL/ppulp2qOvsTmg3rq2wWyrjrWynA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 31 Oct 2021 09:26:11 -0700 Message-Id: Subject: BOM issue X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alex wennerberg" To: <~adnano/go-gemini-devel@lists.sr.ht> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: alex@alexwennerberg.com Hi adnano -- I finally realized the solution to a bug I encountered a long time ago. In some cases, the first line was not parsed properly as Gemini: https://alex.flounder.online/test/bom.gmi The issue is a byte order mark at the beginning of the line. I think something like this https://gist.github.com/jaypozo/eaf13f7ecfec68b408cf would help -- let me know if you'd like me to submit a patch All the best, Alex