Bug#966073: info2www outputs HTML4/iso-8859-1 but text is UTF-8

2023-06-17 Thread Kaleb Hornsby
I came across this bug as well, but my fix is slightly different:


166c166
< print "Content-type: text/html; charset=utf-8\n\n"; # Mime header
for NCSA httpd
---
> print "Content-type: text/html\n\n"; # Mime header for NCSA httpd



Bug#966073: info2www outputs HTML4/iso-8859-1 but text is UTF-8

2020-07-22 Thread Alexandre Hoïde
Package: info2www
Version: 1.2.2.9-24
Severity: normal

Dear info2www maintainers,

info2www outputs HTML 4 and does not specify "charset". Thus, Firefox
represents as default iso-8859-1 when it actually is UTF-8 encoded.
In Firefox, one has to manually choose
  [Display -> Text encoding -> unicode]
for all the text to display properly.

Probably not the correct way to fix it but : my workaround as
attached patch.

Best regards,

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CH:fr (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages info2www depends on:
ii  apache2 [httpd-cgi]  2.4.38-3+deb10u3
ii  perl 5.28.1-6

info2www recommends no packages.

info2www suggests no packages.

-- no debconf information
--- original-info2www   2020-07-22 16:06:42.025679867 +0200
+++ /usr/lib/cgi-bin/info2www   2020-07-22 16:08:24.370046028 +0200
@@ -384,7 +384,7 @@
print
"http://www.w3.org/TR/REC-html4/loose.dtd\";>\n\n\nInfo
 Node: ",
&HTMLify("($h_file)$h_node"),
-   "\nmailto:lmdrsm\@lmd.ericsson.se\";>\n\n",
+   "\n\nmailto:lmdrsm\@lmd.ericsson.se\";>\n\n",
"",
"$info_img",
&HTMLify("($h_file)$h_node"),