[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cups-bugs
Subject:    Re: [cups.bugs] lpr - file with cyrillic symbols in the name is not
From:       Michael Sweet <mike () easysw ! com>
Date:       2007-10-30 14:37:06
Message-ID: 6046-cups.bugs () news ! easysw ! com
[Download RAW message or body]

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
_______________________________________________
cups-bugs mailing list
cups-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/cups-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic