Prechádzať zdrojové kódy

Merge pull request #84 from infosiftr/fix-utf8-push

Fix spurious vimdiff showing up with identical files
yosifkit 11 rokov pred
rodič
commit
6ae4b7c1fa
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      push.pl

+ 2 - 2
push.pl

@@ -123,11 +123,11 @@ while (my $repo = shift) { # '/_/hylang', '/u/tianon/perl', etc
 	
 	my $shortFile = $repoName . '/README-short.txt';
 	my $short = slurp $shortFile or warn 'missing ' . $shortFile;
-	$short = trim $short;
+	$short = trim(decode('UTF-8', $short));
 	
 	my $longFile = $repoName . '/README.md';
 	my $long = slurp $longFile or warn 'missing ' . $longFile;
-	$long = trim $long;
+	$long = trim(decode('UTF-8', $long));
 	
 	my $repoUrl = 'https://registry.hub.docker.com' . $repo . '/settings/';
 	my $repoTx = $ua->get($repoUrl);