@@ -240,9 +240,10 @@ sub ACTION_man {
240240 $command = " msggrep -K -E -e \" Po4a Tools\" po/pod/$lang .po |" ;
241241 $command .= " msgconv -t UTF-8 | " ;
242242 $command .= " msgexec /bin/sh -c '[ -n \"\$ MSGEXEC_MSGID\" ] " ;
243- $command .= " && cat || cat > /dev/null'" ;
243+ my $devnull = File::Spec-> devnull;
244+ $command .= " && cat || cat > $devnull '" ;
244245
245- my $title = ` $command 2> /dev/null ` ;
246+ my $title = ` $command 2> $devnull ` ;
246247 $title = " Po4a Tools" unless length $title ;
247248 $title = Encode::decode_utf8($title );
248249 $parser -> {release } = $parser -> {center } = $title ;
@@ -313,8 +314,9 @@ sub postats {
313314 my ( @t100 , @t95 , @t90 , @t80 , @t70 , @t50 , @t33 , @t20 , @starting );
314315
315316 foreach my $file ( sort @files ) {
316- my $lang = fileparse( $file , qw{ .po} );
317- my $stat = ` msgfmt -o /dev/null -c --statistics $file 2>&1` ;
317+ my $lang = fileparse( $file , qw{ .po} );
318+ my $devnull = File::Spec-> devnull;
319+ my $stat = ` msgfmt -o $devnull -c --statistics $file 2>&1` ;
318320 my ( $trans , $fuzz , $untr ) = ( 0, 0, 0 );
319321 if ( $stat =~ / (\d +)\D +?(\d +)\D +?(\d +)/ ) {
320322 ( $trans , $fuzz , $untr ) = ( $1 , $2 , $3 );
0 commit comments