mirror of https://github.com/MidnightCommander/mc
Remove LC_ALL from info_size.
INFO file generate without LC_ALL e.g. in current locale. Size must be computed with same locale, otherwise INFO file will be chopped of
This commit is contained in:
parent
6b0ee515ad
commit
426f114a93
|
@ -34,7 +34,7 @@ sub mcdebfs_list
|
||||||
local($archivename)=@_;
|
local($archivename)=@_;
|
||||||
local $qarchivename = quote($archivename);
|
local $qarchivename = quote($archivename);
|
||||||
chop($date=`LC_ALL=C date "+%b %d %H:%M"`);
|
chop($date=`LC_ALL=C date "+%b %d %H:%M"`);
|
||||||
chop($info_size=`LC_ALL=C dpkg -I $qarchivename | wc -c`);
|
chop($info_size=`dpkg -I $qarchivename | wc -c`);
|
||||||
$install_size=length($pressinstall);
|
$install_size=length($pressinstall);
|
||||||
|
|
||||||
print "dr-xr-xr-x 1 root root 0 $date CONTENTS\n";
|
print "dr-xr-xr-x 1 root root 0 $date CONTENTS\n";
|
||||||
|
|
Loading…
Reference in New Issue