[Pkg-cups-devel] Bug#351952: cupsys: Adding <meta> for each HTML
document won't work
Frédéric Bothamy
frederic.bothamy at free.fr
Thu May 18 12:28:26 UTC 2006
Followup-For: Bug #351952
Package: cupsys
Version: 1.1.23-12
Hello,
I have stumbled over this (annoying) bug in cupsys and I have tested adding the <meta>
tag in the fr/header.tmpl (with "DefaultCharset notused" in cupsd.conf).
This does not work because as specified in the HTML 4 specifications
(http://www.w3.org/TR/html4/charset.html) :
conforming user agents must observe the following priorities [...]:
1. An HTTP "charset" parameter in a "Content-Type" field.
2. A META declaration with "http-equiv" set to "Content-Type" and a value set for "charset".
3. The charset attribute set on an element that designates an external resource.
Here, the CUPS webserver is already sending the HTTP "charset" parameter
(as utf-8 because of DefaultCharset) in a "Content-Type" field. So the
<meta> declaration is ignored.
I would then suggest the first solution (convert files to UTF-8).
Greetings,
Fred
-- System Information:
Debian Release: testing/unstable
APT prefers testing-proposed-updates
APT policy: (900, 'testing-proposed-updates'), (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.16
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages cupsys depends on:
ii adduser 3.87 Add and remove users and groups
ii debconf [debconf-2.0] 1.5.0 Debian configuration management sy
ii gs-esp 8.15.1.dfsg.1-2 The Ghostscript PostScript interpr
hi libc6 2.3.6-7 GNU C Library: Shared libraries
ii libcupsimage2 1.1.23-12 Common UNIX Printing System(tm) -
ii libcupsys2 1.1.23-12 Common UNIX Printing System(tm) -
ii libgnutls12 1.2.9-2 the GNU TLS library - runtime libr
ii libpam0g 0.79-3.1 Pluggable Authentication Modules l
ii libpaper1 1.1.14-7 Library for handling paper charact
ii libslp1 1.2.1-5 OpenSLP libraries
ii patch 2.5.9-4 Apply a diff file to an original
ii perl-modules 5.8.8-4 Core Perl modules
ii procps 1:3.2.6-2.2 /proc file system utilities
ii xpdf-utils 3.01-7 Portable Document Format (PDF) sui
ii zlib1g 1:1.2.3-11 compression library - runtime
Versions of packages cupsys recommends:
ii cupsys-client 1.1.23-12 Common UNIX Printing System(tm) -
ii foomatic-filters 3.0.2-20060318-2 linuxprinting.org printer support
ii smbclient 3.0.22-1 a LanManager-like simple client fo
-- debconf information excluded
More information about the Pkg-cups-devel
mailing list