unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 0/3] attempt to display text/plain with bogus charsets
@ 2016-08-18  1:39 Eric Wong
  2016-08-18  1:39 ` [PATCH 1/3] view: attach_link uses string concatentation Eric Wong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Wong @ 2016-08-18  1:39 UTC (permalink / raw)
  To: meta; +Cc: Thomas Ferris Nicolaisen, Johannes Schindelin

Thomas Ferris Nicolaisen reported a problem with Dscho's
Git for Windows 2.9.3 announcement not rendering text inline:

https://public-inbox.org/git/alpine.DEB.2.20.1608131214070.4924@virtualbox/

This was caused by the bogus charset=X-UNKNOWN set by Alpine.
Attempt to handle it as UTF-8, but fall back to blindly showing
it to the user.  In either case, warn users about the mangled
text.


Eric Wong (3):
  view: attach_link uses string concatentation
  view: try to display bogus charsets for text/plain
  view: try assuming UTF-8 for bogus charsets

 lib/PublicInbox/View.pm | 40 +++++++++++++++++++++++++++++++---------
 1 file changed, 31 insertions(+), 9 deletions(-)

-- 
EW

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

end of thread, other threads:[~2016-08-18  1:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18  1:39 [PATCH 0/3] attempt to display text/plain with bogus charsets Eric Wong
2016-08-18  1:39 ` [PATCH 1/3] view: attach_link uses string concatentation Eric Wong
2016-08-18  1:39 ` [PATCH 2/3] view: try to display bogus charsets for text/plain Eric Wong
2016-08-18  1:39 ` [PATCH 3/3] view: try assuming UTF-8 for bogus charsets Eric Wong

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