Skip to content

Commit

Permalink
Fix append behaviour for STDOUT
Browse files Browse the repository at this point in the history
Change-Id: I295dc5e16a5c63475d418b97bc143b6d54a269f5
  • Loading branch information
Akron committed Mar 29, 2023
1 parent 1ce1bb5 commit e24c933
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.6.1 2023-03-22
- conllu2korapxml:
- Fix append for filehandle output.

0.6.0 2023-01-13
- korapxml2conllu:
- the sigle-pattern option now affects the entire sigle
Expand Down
4 changes: 2 additions & 2 deletions script/conllu2korapxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ my $_COMPRESSION_METHOD = ZIP_CM_DEFLATE;
my %opts;
my %processedFilenames;

our $VERSION = '0.6.0';
our $VERSION = '0.6.1';
our $VERSION_MSG = "\nconllu2korapxml - v$VERSION\n";

use constant {
Expand Down Expand Up @@ -201,7 +201,7 @@ sub newZipStream {
or die "ERROR ('$fname'): zip failed: $ZipError\n";
} else {
$zip = new IO::Compress::Zip $outh, Zip64 => 1, TextFlag => 1,
Method => $_COMPRESSION_METHOD, Append => 1, Name => "$fname"
Method => $_COMPRESSION_METHOD, Append => 0, Name => "$fname"
or die "ERROR ('$fname'): zip failed: $ZipError\n";
}
}
Expand Down
2 changes: 1 addition & 1 deletion script/korapxml2conllu
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ my @extract_metadata_regex;

my $lm_training_data = 0;

our $VERSION = '0.6.0';
our $VERSION = '0.6.1';

our $VERSION_MSG = "\nkorapxml2conllu - v$VERSION\n";

Expand Down

0 comments on commit e24c933

Please sign in to comment.