bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#147341: gettext: xgettext -D breaks -j (fwd)


From: Santiago Vila
Subject: Bug#147341: gettext: xgettext -D breaks -j (fwd)
Date: Tue, 21 May 2002 13:19:59 +0200 (CEST)

Hello.

I received this report from the Debian bug system.
[ Please keep the Cc: lines when replying, if possible. Thanks. ]

---------- Forwarded message ----------
Date: Sat, 18 May 2002 07:34:43 -0400 (EDT)
From: Mark W. Eichin <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Subject: gettext: xgettext -D breaks -j

Package: gettext
Version: 0.10.40-6
Severity: normal

% xgettext -j -D .. -d "bins-edit-gui" --keyword="N_" --keyword="_" --keyword="
translate" -f POTFILES.in
error while opening "bins-edit-gui.po" for reading: No such file or directory

The -D arg is documented as telling where to look for *input* files,
and in fact, the output file is correctly generated in the working
directory of xgettext.  However, -j is "join with existing", namely,
the same file it is going to output -- and therefore should *not* be
subject to -D path (or rather, should find it in the working dir
anyway.)

A quick look at src/xgettext.c and surroundings shows no good way to
pass this down to open_po_file, other than perhaps constructing an
absolute pathname from it.  As a workaround, adding "-D ." to the
arguments (to force the current dir into the po-file search path) gets
the right result, for the wrong reason :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]