lpr - file with cyrillic symbols in the name is not printed

Michael Sweet mike at easysw.com
Tue Oct 30 07:37:06 PDT 2007


oleg wrote:
> Fedora 7, cups-1.2.12, system locale - ru_UA.KOI8-U
> 
> at performance of a command:
> lpr cyrillic_file_name
> (cyrillic_file_name="test-тест")
> nothing is printed...
> 
> in a conclusion "strace lpr ..." received:
> 
> execve("/usr/bin/lpr", ["lpr", "test-\324\305\323\324"], [/* 35 vars */]) = 0
> 
> ..
> 
> access("test-я┌п╣я│я┌", R_OK)           = -1 ENOENT (No such file or directory)
> 
> ..
> 
> In line "access..." the name of a file is already recoded in utf, but such file in file system is not present (is only with an initial name in the coding koi8-u).
> 
> Why cups will recode a name of a file?

Because CUPS only uses UTF-8 internally, and while we can know the
charset used for a locale, we can't know the charset used for a
filename.

This can't be "fixed", however you can use:

    lpr <cyrillic_file_name

as a workaround.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups-devel mailing list