Package: gthumb
Version: 3:2.10.2-4
Severity: wishlist

Hi. 

I've found this small problem twice or thrice already, so I'm sending 
this suggestion.

When gthumb generated photo albums it writes utf-8 encoded xhtml files, 
and declares them as utf-8. So when you open the album in a local 
browser it displays ok. But some people upload the album to an apache 
web server that is configured to send an http header declaring 
iso-8859-1 encoding for every html file it serves (for instance because 
they sually write their html pages in iso-8859-1). When browsing 
the uploaded album remotely the browser apparently gets the wrong header
and renders the international characters wrong. 

If the server is configured to allow configuration in every content 
directory with .htaccess files (that is if the AllowOverride directive
aplicable to the given directory includes the FileInfo keyword), then 
there is a simple fix which is to include an .htaccess file in the 
album with a singe line in its content: 

  AddType "text/html; charset=UTF-8" html

This will only solve anything in some apache configurations, but at 
least in my sid I see the apache2 configured with AllowOverride FileInfo
for user directories (in fact it might not show this problems because
the default encodign is already UTF-8, but one may change it either 
in httpd.conf or in a upper level .htaccess in a user dir or whatever). 
At least I don't think this has any chance of breaking anything, so 
I suggest adding this .htaccess file in every album theme in gthumb, 
so that it gets automatically copied to the generated photo albums 
and they work ok when uploaded to some apache servers. 

I did it in my computer with 

for d in /usr/share/gthumb/albumthemes/* ; do  cp .htaccess $d ; done

as root. 

Maybe the .htaccess file and some similar configuration could 
be added to some gthumb post-inst script ? 


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-486
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gthumb depends on:
ii  gconf2                  2.18.0.1-3       GNOME configuration database syste
ii  libart-2.0-2            2.3.19-3         Library of functions for 2D graphi
ii  libatk1.0-0             1.18.0-2         The ATK accessibility toolkit
ii  libbonobo2-0            2.18.0-2         Bonobo CORBA interfaces library
ii  libbonoboui2-0          2.18.0-5         The Bonobo UI library
ii  libc6                   2.6-2            GNU C Library: Shared libraries
ii  libcairo2               1.4.10-1         The Cairo 2D vector graphics libra
ii  libexif12               0.6.16-1         library to parse EXIF files
ii  libfontconfig1          2.4.2-1.2        generic font configuration library
ii  libgconf2-4             2.18.0.1-3       GNOME configuration database syste
ii  libglade2-0             1:2.6.1-1        library to load .glade files at ru
ii  libglib2.0-0            2.12.12-1+b1     The GLib library of C routines
ii  libgnome-keyring0       0.8.1-2          GNOME keyring services library
ii  libgnome2-0             2.18.0-4         The GNOME 2 library - runtime file
ii  libgnomecanvas2-0       2.14.0-3         A powerful object-oriented display
ii  libgnomeui-0            2.18.1-2         The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0          1:2.18.1-3+b1    GNOME Virtual File System (runtime
ii  libgphoto2-2            2.3.1-5+b1       gphoto2 digital camera library
ii  libgphoto2-port0        2.3.1-5+b1       gphoto2 digital camera port librar
ii  libgtk2.0-0             2.10.13-1        The GTK+ graphical user interface 
ii  libice6                 1:1.0.3-2        X11 Inter-Client Exchange library
ii  libjpeg62               6b-13            The Independent JPEG Group's JPEG 
ii  liborbit2               1:2.14.7-0.1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0           1.16.4-2         Layout and rendering of internatio
ii  libpopt0                1.10-3           lib for parsing cmdline parameters
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libtiff4                3.8.2-7          Tag Image File Format (TIFF) libra
ii  libusb-0.1-4            2:0.1.12-7       userspace USB programming library
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1:1.1.8-2        X cursor management library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxfixes3              1:4.0.3-2        X11 miscellaneous 'fixes' extensio
ii  libxi6                  2:1.1.1-1        X11 Input extension library
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxml2                 2.6.29.dfsg-1    GNOME XML library
ii  libxrandr2              2:1.2.1-1        X11 RandR extension library
ii  libxrender1             1:0.9.2-1        X Rendering Extension client libra
ii  scrollkeeper            0.3.14-13        A free electronic cataloging syste
ii  shared-mime-info        0.21-2           FreeDesktop.org shared MIME databa
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

gthumb recommends no packages.

-- no debconf information


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

Reply via email to