On Sat, May 28, 2005 at 08:45:13PM +0200, Francois Gouget wrote:
Here's a better version of this patch. The perl documentation says that
when using
open "cmd|" we can get the process exit code in '$?' after the close.
So
this is what this patch does. If everything went well nsgmls returns 0
and this is what we should get. If anything went wrong we will get a
non-zero error code and print a message.
I also removed the 'cat' to not have multiple child processes though I
don't think this is strictly necessary. But it seems cleaner and should
be ever so slightly more efficient too.
Changelog:
* lib/Locale/Po4a/Sgml.pm
Francois Gouget <fgouget(a)codeweavers.com>
Check the nsgmls exit code and issue an error if it is non-zero.
This lets us detect the case where nsgmls is missing.
Perfect, commited, thanks. I just changed the output to use the usual way to
do so (translating and wrapping).
Thanks again,
Mt.