From: Julien Moutinho <julm+public-inbox@sourcephile.fr>
To: meta@public-inbox.org
Subject: bug: httpd: incorrect Unicode output of $INBOX_DIR/description
Date: Thu, 28 May 2020 17:12:16 +0200 [thread overview]
Message-ID: <20200528151216.l7vmnmrs4ojw372g@sourcephile.fr> (raw)
Description
-----------
public-inbox-httpd does not output $INBOX_DIR/description
using the expected Unicode code points.
Reproducing
-----------
$ cat /var/lib/public-inbox/inboxes/equipage/description
Équipage
$ file $(readlink -e description)
/nix/store/a7m2gqmj417dlqzjq1arizm7gxxrdqqm-description: UTF-8 Unicode text, with no line terminators
Is rendered by public-inbox-httpd as:
$ curl -s http://example.org/lists/archives/ | grep quipage'$'
Équipage
My setup: public-inbox-1.5.0, or public-inbox-1.2.0, on NixOS.
Expecting
---------
$ curl -s http://example.org/lists/archives/ | grep quipage'$'
Êquipage
Or:
$ curl -s http://example.org/lists/archives/ | grep quipage'$'
Équipage
Debugging
---------
This may be due to using: ascii_html($ibx->description);
Thanks a lot for developing public-inbox,
Julien.
next reply other threads:[~2020-05-28 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 15:12 Julien Moutinho [this message]
2020-05-28 18:37 ` [PATCH] treat $INBOX_DIR/description and gitweb.owner as UTF-8 Eric Wong
2020-05-28 19:07 ` Julien Moutinho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200528151216.l7vmnmrs4ojw372g@sourcephile.fr \
--to=julm+public-inbox@sourcephile.fr \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).