[cups.bugs] [MOD] STR #4119: _cupsLangPuts() does not work correctly with string ""

Naruiko Ogasawara naruoga at gmail.com
Mon Jun 11 09:51:12 PDT 2012


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cupstestppd-help.txt
URL: <https://lists.cups.org/pipermail/cups/attachments/20120611/703b4c34/attachment.txt>


More information about the cups mailing list