[MOD] STR #4119: _cupsLangPuts() does not work correctly with string ""
Naruiko Ogasawara <[email protected]>
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
In cups CLI command, there are several _cupsLangPuts() call with message
string "" e.g. systemv/cupstestppd.c:usage() function:
--------------------
static void
usage(void)
{
_cupsLangPuts(stdout, _("Usage: cupstestppd [options] filename1.ppd[.gz]
"
"[... filenameN.ppd[.gz]]"));
_cupsLangPuts(stdout, _(" program | cupstestppd [options] -"));
_cupsLangPuts(stdout, ""); // <---- * * * HERE * * *
...
--------------------
However "" is defined as msgid of .po profiles in each .po files, so
_cupsLangPuts(..., "") puts wrong message when LANG != C (see attachment
file).
In this case, _cupsLangPuts() (or subfunction such as _cupsLangString())
should not use message database. Sorry I have less investigation to write
a patch.
Link: http://www.cups.org/str.php?L4119
Version: 1.6-current
_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
cupstestppd-help.txt
(text/plain, 1.4 KB)
Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]
program | cupstestppd [options] -
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-20 16:43+0900
Last-Translator: OPFC TRANSCUPS <[email protected]>
Language-Team: OPFC TRANSCUPS <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Language:
Options:
Project-Id-Version: CUPS 1.4
Report-Msgid-Bugs-To: http://www.cups.org/str.php
POT-Creation-Date: 2012-03-07 13:38-0800
PO-Revision-Date: 2009-02-20 16:43+0900
Last-Translator: OPFC TRANSCUPS <[email protected]>
Language-Team: OPFC TRANSCUPS <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Language:
-I {filename,filters,none,profiles}
Ignore specific warnings.
-R root-directory Set alternate root.
-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}
Issue warnings instead of errors.
-q Run silently.
-r Use 'relaxed' open mode.
-v Be slightly verbose.
-vv Be very verbose.