summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/po.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 236b5984f..d741a7928 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -972,7 +972,7 @@ sub isvalidpo ($) {
writefile(basename($infile), File::Spec->tmpdir, $content)
or return failure("failed to write $infile");
- my $res = (system("msgfmt", "--check", $infile) == 0);
+ my $res = (system("msgfmt", "--check", $infile, "-o", "/dev/null") == 0);
# Unlinking should happen automatically, thanks to File::Temp,
# but it does not work here, probably because of the way writefile()