prashant-shilimkar / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
GNU Lesser General Public License v2.1
0 stars 0 forks source link

msgfmt return value of 1 not necessarily an error #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

The current repositiory version of the GettextDistTask will halt the build
when the msgfmt call returns a result other than 0.

Warnings which don't have to break the build will return 1.

What steps will reproduce the problem?
1. have a po file that causes a warning when processed by GettextDistTask,
like a translation missing a leading "\n"
2. run GettextDistTask

What is the expected output? What do you see instead?

Because of the warning, msgfmt seems to return a value of 1. This causes
AbstractGettextTask to throw an exception which causes the build to halt.

This is not necessary, as not even the language that causes the message has
to be necessarily erroneous. 

What version of the product are you using? On what operating system?
gettext-ant-taks, prerelease 0.9.8 (revision 206)

Please provide any additional information below.

See also issue "msgfmt warning output breaks GettextDistTask", which
already solved parts of this problem for the parsing of the msgfmt command
line output.

Original issue reported on code.google.com by tobiaskr...@gmail.com on 10 May 2010 at 12:52