URL:
  <http://savannah.gnu.org/bugs/?43720>

                 Summary: msgfilter aborts with empty msgstr
                 Project: GNU gettext
            Submitted by: xenopathic
            Submitted on: Thu 27 Nov 2014 11:07:32 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When running msgfilter on a .po file that contains an empty msgstr, and the
command prints anything, then msgfilter will abort. The abort does not occur
however if the msgstr is non-empty, or if the command doesn't output
anything.

For example:

    msgfilter -i test.po cat #doesn't abort, empty msgstr prints nothing
    msgfilter -i test.po echo -n #doesn't abort, no output
    msgfilter -i test.po echo -n 'a' #aborts on empty msgstr
    msgfilter -i test.po echo #aborts on empty msgstr

I did a bit of debugging, and it seems that the abort is called from
pipe_filter_ii_execute in gnulib/lib/pipe-filter-ii.c:270, which doesn't make
much sense as that should only be called if setting the SIGPIPE signal handler
fails... which is totally unrelated to the output of the filter program?



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 27 Nov 2014 11:07:32 PM GMT  Name: test.po  Size: 115B   By:
xenopathic

<http://savannah.gnu.org/bugs/download.php?file_id=32564>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43720>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to