--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cupsys: strips Charset part from LANG environment variable passed to filter
- From: alex@topconps.org
- Date: Thu, 24 Mar 2005 00:22:27 +0300
- Message-id: <20050323212227.GB10880@topconps.org>
Package: cupsys
Version: 1.1.23-7
Severity: important
It made unusable filters which depends on LANG environment variable to handle postscript
file generation. For example the a2ps filter (under foomatic-rip) used "C" locale even
I used "ru_RU.KOI8-R".
Test filter produced next output:
echo -e "Env:\t$CHARSET, $CONTENT_TYPE, $CUPS_DATADIR, $CUPS_SERVERROOT, $DEVICE_URI" >> /tmp/$SCRIPT.trace
echo -e " \t$LANG, $PATH, $PPD, $PRINTER, $RIP_CACHE, $SOFTWARE, $TZ, $USER" >> /tmp/$SCRIPT.trace
---
Env: koi8-r, text/plain, /usr/share/cups, /etc/cups, socket://xxx.xxx.xxx.xxx:9100
ru_RU, /usr/lib/cups/filter:/bin:/usr/bin, /etc/cups/ppd/hplj_4100.ppd, hplj_4100, , CUPS/1.1, Europe/Moscow, user
^^^^^
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages cupsys depends on:
ii adduser 3.59 Add and remove users and groups
ii debconf 1.4.42 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcupsimage2 1.1.23-3 Common UNIX Printing System(tm) -
ii libcupsys2-gnutls10 1.1.23-3 Common UNIX Printing System(tm) -
ii libgnutls11 1.0.16-13 GNU TLS library - runtime library
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libpaper1 1.1.14-3 Library for handling paper charact
ii libslp1 1.0.11-7 OpenSLP libraries
ii patch 2.5.9-2 Apply a diff file to an original
ii perl-modules 5.8.4-5 Core Perl modules
ii xpdf-utils 3.00-12 Portable Document Format (PDF) sui
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information:
* cupsys/raw-print: true
* cupsys/backend: ipp, lpd, parallel, socket
--- End Message ---
--- Begin Message ---
- To: 301119-done@bugs.debian.org
- Subject: Re: Bug#301119: cupsys: strips Charset part from LANG environment variable passed to filter
- From: Martin Pitt <mpitt@debian.org>
- Date: Sun, 16 Nov 2008 16:46:54 +0100
- Message-id: <20081116154654.GA9103@piware.de>
- In-reply-to: <20050323212227.GB10880@topconps.org>
- References: <20050323212227.GB10880@topconps.org>
Version: 1.3.9-1
Hello Alex,
alex@topconps.org [2005-03-24 0:22 +0300]:
> It made unusable filters which depends on LANG environment variable to handle postscript
> file generation. For example the a2ps filter (under foomatic-rip) used "C" locale even
> I used "ru_RU.KOI8-R".
> Test filter produced next output:
>
> echo -e "Env:\t$CHARSET, $CONTENT_TYPE, $CUPS_DATADIR, $CUPS_SERVERROOT, $DEVICE_URI" >> /tmp/$SCRIPT.trace
> echo -e " \t$LANG, $PATH, $PPD, $PRINTER, $RIP_CACHE, $SOFTWARE, $TZ, $USER" >> /tmp/$SCRIPT.trace
> ---
> Env: koi8-r, text/plain, /usr/share/cups, /etc/cups, socket://xxx.xxx.xxx.xxx:9100
> ru_RU, /usr/lib/cups/filter:/bin:/usr/bin, /etc/cups/ppd/hplj_4100.ppd, hplj_4100, , CUPS/1.1, Europe/Moscow, user
This seems to be fixed in the current version. If I print something
and enable debug logging, I get
D [16/Nov/2008:16:43:43 +0100] [Job 8] envp[18]="LANG=de_DE.UTF8"
in the debug log. Thus I close this report now. Thank you!
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
--- End Message ---