4 open O
, '<', $ARGV[0] or die $!;
8 open N
, '<', $ARGV[1] or die $!;
17 defined $o and $o =~ s/[ \t]+$//;
18 defined $n and $n =~ s/[ \t]+$//;
20 last unless defined $o;
33 if ($o eq "\n" || $n eq "\n") {
44 if (substr($o, 0, 3) eq '#~ ' && substr($n, 0, 3) ne '#~ ') {
51 if ($o =~ /^("PO(?:-Revision|T-Creation)-Date: \d+-\d+-\d+ \d+:\d+):\d\d (.*\n)$/ &&
59 if ($o =~ /^"PO-Revision-Date:/ && $n =~ /^"PO-Revision-Date:/) {
66 if ($o =~ /(^"Last-Translator: .*<).*?(>.*\n)/ && $n eq "$1Unknown$2") {
86 if ($o eq "#, fuzzy\n") {
95 if ($tmp =~ s/, fuzzy// && $n eq $tmp) {
103 if ($fuzzy && $o =~ /^(?:#~ )?msgstr / && $n eq "msgstr \"\"\n") {
111 print "-$o" if $diff;