[Pkg-cups-devel] Bug#473198: cupsys-client: lp cannot open files with certain characters in their names in pl_PL locale with ISO-8859-2 charset

Michal Politowski mpol at charybda.icm.edu.pl
Sat Mar 29 09:05:53 UTC 2008


Package: cupsys-client
Version: 1.3.6-3
Severity: normal

$ lp ą.ps                                    
lp: błąd - nie można uzyskać dostępu do "ą.ps" - Nie ma takiego pliku ani katalogu
zsh: exit 1     lp ą.ps

1. The error message translates to 'cannot access "ą.ps" - no such file or
directory.

2. The message is in polish, since with
LC_MESSAGES=C lp ą.ps
there is no error, lp works correctly.

3. the character ą in ą.ps is 'LATIN SMALL LETTER A WITH OGONEK'
 - 0xb1 in ISO-8859-2

4. strace -efile lp ą.ps
shows that it tries to call access("\xc4\x85.ps")
using the UTF-8 representation for the character in question.

5. But in the error message the ISO-8859-2 representation is used.

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

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash

Versions of packages cupsys-client depends on:
ii  adduser                3.107             add and remove users and groups
ii  cupsys-common          1.3.6-3           Common UNIX Printing System(tm) - 
ii  libc6                  2.7-9             GNU C Library: Shared libraries
ii  libcupsimage2          1.3.6-3           Common UNIX Printing System(tm) - 
ii  libcupsys2             1.3.6-3           Common UNIX Printing System(tm) - 
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

cupsys-client recommends no packages.

-- no debconf information

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20080329/59db239d/attachment.pgp 


More information about the Pkg-cups-devel mailing list