[cups.bugs] [MOD] STR #2812: transcodes file names in argv

martin.pitt.canonical martin.pitt at canonical.com
Tue Apr 29 14:46:49 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Originally from http://bugs.debian.org/473198:

lp (and other cups CLI programs, I presume) call _cupsSetLocale() which
transcodes the entire argv[] into UTF-8, but uses setlocale(LC_ALL, "").
This does the wrong thing when specifying file names which contain e. g.
latin encoded characters, and lp is run under a latin locale: the file
name is converted to UTF-8, and then it tries to open the file under the
UTF-8 encoding, but since the set locale is latin, it gets a "file not
found" error. When running lp under LC_ALL=C, everything works correctly.

Link: http://www.cups.org/str.php?L2812
Version: 1.3.7





More information about the cups-devel mailing list