From f486c61ca6bda1edd51acdf5ba37b2d58392c9a0 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 23 Oct 2014 14:09:24 -0600 Subject: [PATCH] Fix spurious vimdiff showing up with identical files --- push.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/push.pl b/push.pl index 4dbb3d282..7a7fac34e 100755 --- a/push.pl +++ b/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);