[Pkg-cups-devel] Bug#440685: lp error when charset != UTF-8 or ASCII and filename with umlaut
Andreas Degert
ad at papyrus-gmbh.de
Mon Sep 3 16:41:21 UTC 2007
Package: cupsys-client
Version: 1.3.0-3
Severity: normal
--- Please enter the report below this line. ---
Example:
export LANG=de_DE
> töstnäme.txt
lp töstnäme.txt
gives 'lp: Fehler - Kann auf "töstnäme.txt" nicht zugreifen - Datei
oder Verzeichnis nicht gefunden'
(file not found)
Reason:
lp (and other cups programs like lpr from cupsys-bsd) encodes all
command line args in UTF-8 with _cupsSetLocale(argv) before processing
them. Then it tries to access the modified file names.
Workaround:
LANG=C lp töstnäme.txt
seems to work. A proper fix in cups would probably be to encode the file
names into the system charset before using them in system calls (or not
modifying the names at all...).
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.21-2-686
Debian Release: lenny/sid
500 unstable ftp.de.debian.org
500 testing security.debian.org
500 testing ftp.de.debian.org
--- Package information. ---
Depends (Version) | Installed
=======================================-+-======================
libc6 (>= 2.6-1) | 2.6.1-1
libcupsimage2 (>= 1.3.0) | 1.3.0-3
libcupsys2 (>= 1.3.0) | 1.3.0-3
libgnutls13 (>= 1.6.3-0) | 1.6.3-1
zlib1g (>= 1:1.2.3.3.dfsg-1) | 1:1.2.3.3.dfsg-3
cupsys-common | 1.2.11-3
adduser | 3.100
More information about the Pkg-cups-devel
mailing list