Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6b7c867

Browse files
author
Ian Macphail
committed
[[ ICUData ]] Fix 'crlf' -> 'lf' in encoded binary files
1 parent d0eeab1 commit 6b7c867

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

util/encode_data.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
# Read in the source file
1111
open INPUT, "<$sourceFile"
1212
or die "Could not open source file \"$sourceFile\": $!";
13-
my @lines = <INPUT>;
13+
binmode INPUT;
14+
my $input = do { local( $/ ) ; <INPUT> } ;
1415
close INPUT;
15-
my $input = join('', @lines);
1616

1717
# Split into bytes
1818
my @bytes = unpack('C*', $input);

0 commit comments

Comments
 (0)