Your message dated Wed, 19 Aug 2009 21:12:20 +0300
with message-id <[email protected]>
and subject line Re: Bug#418915: CGI.pm sets bogus <meta http-equiv with wrong
with wrong charset
has caused the Debian Bug report #418915,
regarding CGI.pm sets bogus <meta http-equiv with wrong with wrong charset
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
418915: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418915
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: CGI
Severity: normal
The following perl program:
#!/usr/bin/perl
use warnings;
use strict;
use CGI;
my $q = new CGI;
print $q->header(-charset => "utf-8"),
$q->start_html();
produces this output:
Content-Type: text/html; charset=utf-8
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
where <meta>-tag contains the wrong charset, contradictory to the charset in
the HTTP header.
Even a prior call $q->charset("utf-8") doesn't fix that problem, and even
using the construct
print $q->start_html(-head=>$q->meta({-http_equiv => 'Content-Type',
-content => 'text/html'}));
just adds another line with a <meta http-equiv...>, but still produces the
wrong one as well.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.6
Locale: LANG=EN_US.UTF-8, LC_CTYPE=de_DE (charmap=ANSI_X3.4-1968) (ignored:
LC_ALL set to C)
--
Moritz Lenz
http://moritz.faui2k3.org/ - http://sudokugarden.de/ - http://perl-6.de/
--- End Message ---
--- Begin Message ---
Version: 5.10.0-1
On Thu, Apr 12, 2007 at 07:34:15PM +0100, Moritz Lenz wrote:
> my $q = new CGI;
> print $q->header(-charset => "utf-8"),
> $q->start_html();
>
> produces this output:
>
> Content-Type: text/html; charset=utf-8
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
This was apparently fixed with CGI.pm-3.16:
Version 3.16 Wed Feb 8 13:29:11 EST 2006
[...]
7. Fixed charset in start_html() and header() to be in synch.
This made it into Debian with Perl 5.10.0, so closing the bug.
Sorry for the lack of response.
--
Niko Tyni [email protected]
--- End Message ---