user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* bug: httpd: incorrect Unicode output of $INBOX_DIR/description
@ 2020-05-28 15:12 Julien Moutinho
  2020-05-28 18:37 ` [PATCH] treat $INBOX_DIR/description and gitweb.owner as UTF-8 Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Moutinho @ 2020-05-28 15:12 UTC (permalink / raw)
  To: meta

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-28 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 15:12 bug: httpd: incorrect Unicode output of $INBOX_DIR/description Julien Moutinho
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

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).