NixExprs.pm: encode default.nix as utf-8 to fix missing chars/data. (#455)
cc #254
This commit is contained in:
parent
147ba3ca31
commit
90870f1416
|
@ -5,6 +5,7 @@ use base qw/Catalyst::View/;
|
|||
use Hydra::Helper::Nix;
|
||||
use Archive::Tar;
|
||||
use IO::Compress::Bzip2 qw(bzip2);
|
||||
use Encode;
|
||||
|
||||
|
||||
sub escape {
|
||||
|
@ -93,7 +94,7 @@ EOF
|
|||
|
||||
my $tar = Archive::Tar->new;
|
||||
$tar->add_data("channel/channel-name", ($c->stash->{channelName} or "unnamed-channel"), {mtime => 1});
|
||||
$tar->add_data("channel/default.nix", $res, {mtime => 1});
|
||||
$tar->add_data("channel/default.nix", encode('utf8',$res), {mtime => 1});
|
||||
|
||||
my $tardata = $tar->write;
|
||||
my $bzip2data;
|
||||
|
|
Loading…
Reference in a new issue