[cups.bugs] [MOD] STR #2812: transcodes file names in argv
Michael Sweet
mike at easysw.com
Wed Apr 30 09:03:31 PDT 2008
Martin Pitt wrote:
> Hi Michael,
>
> Michael Sweet [2008-04-29 19:56 -0700]:
>> This is working exactly as designed/required. If you use filenames that
>> have a different encoding than the locale, you need to redirect from
>> stdin, e.g.:
>
> Sure, that's a workaround, but why deliberately break it in the first
> place? I don't think it is *ever* right to transcode a file name in
> argv; unlike I alluded in my initial post, the currently set locale
> doesn't influence open(), it just takes the bits as they are.
Except that the command-line contains a lot of options which use
the locale encoding. If we don't transcode the command-line, we
can't depend on having UTF-8 going to the scheduler, and that
includes filenames.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
More information about the cups-devel
mailing list