[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#227339: xgettext does sometimes not print comments found into source
From: |
Santiago Vila |
Subject: |
Bug#227339: xgettext does sometimes not print comments found into source files (fwd) |
Date: |
Wed, 14 Jan 2004 12:03:05 +0100 (CET) |
Hello.
I received this from the Debian bug system:
---------- Forwarded message ----------
From: Denis Barbier <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Tue, 13 Jan 2004 01:28:34 +0200
Subject: Bug#227339: xgettext does sometimes not print comments found into
source files
Package: gettext
Version: 0.13.1-1
Severity: normal
Hi, here is a test case:
################### test.c #########################
/* Test 1 */
char *s1 = gettext("foo"
"bar");
/* Test 2 */
char *s2 = gettext("baz" "quux");
char *s1 = gettext("blah"
/* Test 3 */
"blah");
############### End of test.c ######################
$ xgettext -c --omit-header -o - test.c
#: test.c:2
msgid "foobar"
msgstr ""
#. Test 2
#: test.c:5
msgid "bazquux"
msgstr ""
#. Test 3
#: test.c:6
msgid "blahblah"
msgstr ""
$
So the first comment is not displayed, but xgettext documentation contains:
`-c [TAG]'
`--add-comments[=TAG]'
Place comment block with TAG (or those preceding keyword lines) in
output file.
IMO documentation makes sense, comment 1 should be displayed, but not 3.
Denis
- Bug#227339: xgettext does sometimes not print comments found into source files (fwd),
Santiago Vila <=