Bug#351952: cupsys: Adding meta for each HTML document won't work

2006-05-27 Thread Vincent Lefevre
On 2006-05-18 14:28:26 +0200, Frédéric Bothamy wrote:
 Followup-For: Bug #351952
 Package: cupsys
 Version: 1.1.23-12
[...]
 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).

In case the default charset can change, an alternative solution would
be to use entities (either numeric entities or named entities).

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/
100% accessible validated (X)HTML - Blog: http://www.vinc17.org/blog/
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#351952: cupsys: Adding meta for each HTML document won't work

2006-05-18 Thread Frédéric Bothamy
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.87Add 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  libc62.3.6-7 GNU C Library: Shared libraries
ii  libcupsimage21.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.1Pluggable Authentication Modules l
ii  libpaper11.1.14-7Library for handling paper charact
ii  libslp1  1.2.1-5 OpenSLP libraries
ii  patch2.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-12Common UNIX Printing System(tm) - 
ii  foomatic-filters3.0.2-20060318-2 linuxprinting.org printer support 
ii  smbclient   3.0.22-1 a LanManager-like simple client fo

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]