mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-12 19:03:10 +03:00
Merge branch '2552_deb_extfs_perl'
* 2552_deb_extfs_perl: Added locale setting before calling dpkg to fix "link to" parsing on non-C locales Ticket #2552: Browsing *.deb files is broken with latest Perl
This commit is contained in:
commit
2ed2895cd1
@ -42,11 +42,11 @@ sub mcdebfs_list
|
||||
print "-r--r--r-- 1 root root $info_size $date INFO\n";
|
||||
print "-r-xr--r-- 1 root root $install_size $date INSTALL\n";
|
||||
|
||||
if ( open(PIPEIN, "dpkg-deb -c $qarchivename |") )
|
||||
if ( open(PIPEIN, "LC_ALL=C dpkg-deb -c $qarchivename |") )
|
||||
{
|
||||
while(<PIPEIN>)
|
||||
{
|
||||
split;
|
||||
@_ = split;
|
||||
|
||||
$perm=$_[0]; $owgr=$_[1]; $size=$_[2];
|
||||
if($_[3] =~ /^\d\d\d\d\-/) { # New tar format
|
||||
@ -100,7 +100,7 @@ sub mcdebfs_list
|
||||
{
|
||||
while(<PIPEIN>)
|
||||
{
|
||||
split;
|
||||
@_ = split;
|
||||
$size=$_[0];
|
||||
last if $size =~ /:/;
|
||||
next if $size !~ /\d+/;
|
||||
|
Loading…
x
Reference in New Issue
Block a user