Skip to content

Commit

Permalink
this is just broken in Perl, not much we can do for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 19, 2017
1 parent c9a500b commit 402e35b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,5 +1,7 @@

7.48 2017-10-14
7.48 2017-10-19
- Reverted previous Mojo::File change since there were too many unintended
side effects.

7.47 2017-10-05
- Added multipart content generator to Mojo::UserAgent::Transactor.
Expand Down
8 changes: 2 additions & 6 deletions lib/Mojo/File.pm
Expand Up @@ -77,12 +77,8 @@ sub move_to {
}

sub new {
my ($class, @p) = @_;

# File systems require bytes, make sure we don't accidentally upgrade
utf8::downgrade $_, 1 for @p;

my $value = @p == 1 ? $p[0] : @p > 1 ? catfile @p : canonpath getcwd;
my $class = shift;
my $value = @_ == 1 ? $_[0] : @_ > 1 ? catfile @_ : canonpath getcwd;
return bless \$value, ref $class || $class;
}

Expand Down

0 comments on commit 402e35b

Please sign in to comment.