diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-29 17:48:25 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-29 17:48:25 +0200 |
commit | 27a01d92c2be3e6c1be23f96d24c3d3358489a87 (patch) | |
tree | 316819a63ac571802b79b7d1e2620c4f3dc6f5f8 /scripts/nix-prefetch-url.in | |
parent | b72e93bca8fc045b37b1e863c423cf0e91e8c479 (diff) |
Shut up "Wide character" warnings in Perl scripts
Diffstat (limited to 'scripts/nix-prefetch-url.in')
-rwxr-xr-x | scripts/nix-prefetch-url.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index 869d29c39..6effbe208 100755 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -1,5 +1,6 @@ #! @perl@ -w @perlFlags@ +use utf8; use strict; use File::Basename; use File::stat; @@ -7,6 +8,9 @@ use Nix::Store; use Nix::Config; use Nix::Utils; +binmode STDERR, ":encoding(utf8)"; + + my $hashType = $ENV{'NIX_HASH_ALGO'} || "sha256"; # obsolete my $cacheDir = $ENV{'NIX_DOWNLOAD_CACHE'}; |