Ticket #593: padre-patch-win32-recent-files.patch
| File padre-patch-win32-recent-files.patch, 1.5 KB (added by getty, 4 years ago) |
|---|
-
lib/Padre/File/Local.pm
11 11 our $VERSION = '0.46'; 12 12 our @ISA = 'Padre::File'; 13 13 14 use constant IS_WIN32 => !!( $^O =~ /^MSWin/ or $^O eq 'cygwin' ); 15 16 if (IS_WIN32) { 17 require Win32; 18 } 19 14 20 sub new { 15 21 my $class = shift; 16 22 my $self = bless { Filename => $_[0] }, $class; 17 23 $self->{protocol} = 'local'; # Should not be overridden 18 24 25 if (IS_WIN32) { 26 # Fixing the case of the filename on Win32. 27 $self->{Filename} = Win32::GetLongPathName($self->{Filename}); 28 } 29 19 30 # Convert the filename to correct format. On Windows C:\dir\file.pl and C:/dir/file.pl are the same 20 31 # file but have different names. 21 32 $self->{Filename} = File::Spec->catfile(File::Spec->splitdir(File::Basename::dirname($self->{Filename})),File::Basename::basename($self->{Filename})); -
Makefile.PL
100 100 requires 'URI' => '0'; 101 101 requires 'version' => 0; 102 102 requires 'Win32::API' => '0.58' if win32; 103 requires 'Win32' => '0.39' if win32; 103 104 requires 'Wx' => '0.91'; 104 105 requires 'Wx::Perl::ProcessStream' => '0.11'; 105 106 requires 'YAML::Tiny' => '1.32';
