From f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Fri, 25 Nov 2016 15:48:27 +0100 Subject: Get rid of unicode quotes (#1140) --- perl/lib/Nix/Config.pm.in | 2 +- perl/lib/Nix/CopyClosure.pm | 4 ++-- perl/lib/Nix/Manifest.pm | 12 ++++++------ perl/lib/Nix/SSH.pm | 4 ++-- perl/lib/Nix/Utils.pm | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'perl') diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in index 3575d99cb..c23e1ae4b 100644 --- a/perl/lib/Nix/Config.pm.in +++ b/perl/lib/Nix/Config.pm.in @@ -33,7 +33,7 @@ sub readConfig { my $config = "$confDir/nix.conf"; return unless -f $config; - open CONFIG, "<$config" or die "cannot open ‘$config’"; + open CONFIG, "<$config" or die "cannot open '$config'"; while () { /^\s*([\w\-\.]+)\s*=\s*(.*)$/ or next; $config{$1} = $2; diff --git a/perl/lib/Nix/CopyClosure.pm b/perl/lib/Nix/CopyClosure.pm index affb3ea52..902ee1a1b 100644 --- a/perl/lib/Nix/CopyClosure.pm +++ b/perl/lib/Nix/CopyClosure.pm @@ -35,14 +35,14 @@ sub copyToOpen { my $missingSize = 0; $missingSize += (queryPathInfo($_, 1))[3] foreach @missing; - printf STDERR "copying %d missing paths (%.2f MiB) to ‘$sshHost’...\n", + printf STDERR "copying %d missing paths (%.2f MiB) to '$sshHost'...\n", scalar(@missing), $missingSize / (1024**2); return if $dryRun; # Send the "import paths" command. syswrite($to, pack("L$fn" or die "cannot create file ‘$fn’: $!"; + open TMP, ">$fn" or die "cannot create file '$fn': $!"; print TMP "$s" or die; close TMP or die; } @@ -34,7 +34,7 @@ sub writeFile { sub readFile { local $/ = undef; my ($fn) = @_; - open TMP, "<$fn" or die "cannot open file ‘$fn’: $!"; + open TMP, "<$fn" or die "cannot open file '$fn': $!"; my $s = ; close TMP or die; return $s; -- cgit v1.2.3