bug-gettext
[Top][All Lists]
Advanced

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

[bug #64490] xgettext-0.22 makes --join-existing less useful


From: Arsen Arsenović
Subject: [bug #64490] xgettext-0.22 makes --join-existing less useful
Date: Sat, 29 Jul 2023 04:31:43 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64490>

                 Summary: xgettext-0.22 makes --join-existing less useful
                   Group: GNU gettext
               Submitter: arsen
               Submitted: Sat 29 Jul 2023 10:31:41 AM CEST
                Category: Programmer tools
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 29 Jul 2023 10:31:41 AM CEST By: Arsen Arsenović <arsen>
as of the release of gettext-0.22, it seems to be impossible to use
--join-existing correctly.  this currently breaks updating translations in
binutils-gdb.git, which uses xgettext in two passes.

example is below:

/tmp/foo$ xgettext --version
xgettext (GNU gettext-tools) 0.22
Copyright (C) 1995-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper.
/tmp/foo$ echo 'void f () { gettext ("foobar"); }' > a.c
/tmp/foo$ echo 'void f () { gettext ("barfoo"); }' > b.c
/tmp/foo$ /usr/bin/xgettext --default-domain=bfd --directory=. --add-comments
--keyword=_ --msgid-bugs-address=https://sourceware.org/bugzilla/
--files-from=/dev/stdin <<< a.c
/tmp/foo$ /usr/bin/xgettext --join-existing --default-domain=bfd --directory=.
--add-comments --keyword=_
--msgid-bugs-address=https://sourceware.org/bugzilla/ --files-from=/dev/stdin
<<< b.c
bfd.po: warning: Charset "CHARSET" is not a portable encoding name.
                 Message conversion to user's charset might not work.
/usr/bin/xgettext: present charset "CHARSET" is not a portable encoding name
/tmp/foo 1 $ sudo emerge =gettext-0.21.1
...
/tmp/foo$ rm *
/tmp/foo$ echo 'void f () { gettext ("foobar"); }' > a.c
/tmp/foo$ echo 'void f () { gettext ("barfoo"); }' > b.c
/tmp/foo$ xgettext --default-domain=foo --directory=. --add-comments
--keyword=_ --files-from=/dev/stdin <<< a.c
/tmp/foo$ xgettext --join-existing --default-domain=foo --directory=.
--add-comments --keyword=_ --f
iles-from=/dev/stdin <<< b.c
foo.po: warning: Charset "CHARSET" is not a portable encoding name.
                 Message conversion to user's charset might not work.
/tmp/foo$ 







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64490>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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