[8.0ß14-x64] Colors by filetype for encrypted files

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kicko
Junior Member
Junior Member
Posts: 2
Joined: 2012-01-10, 11:02 UTC
Contact:

[8.0ß14-x64] Colors by filetype for encrypted files

Post by *kicko »

Colors for encrypted files doesn't work in x64 version ... it works in x86 version.

Defined selection type:
Plugin: tc
Property: ecrypted
OP: =
Value: Yes
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Confirm, searching for files by this condition returns just empty list in 64-bit version. BTW, it seems all other attributes cannot be searched this way too. I checked Compressed and System, found nothing though the files with these attributes are present (and can be found if I search for them using the Attributes checkbox instead of tc plugin).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Confirmed for 8.0 b15 x64
Without plugin, search by attributes works.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed too.

Also - but I don't know if this is a missing feature or a bug - but color by filetype inside archives doesn't work either when the search is done by plugin. But this also applies to TC 8.0b15 32bit and TC 7.56a, so it is probably a missing feature.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, that's actually a bug in Free Pascal! It returns false if two BOOL variables are both true, but one is stored internally as a=BOOL(1) and one as b=BOOL(-1). Then a=b returns false...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, usually BOOL (which is simply integer) variable is false if it is equals to zero or true if not. So 1 and -1 are both true values. The only problem that such comparison is incorrect for them...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, in Delphi "a=b" always returns true if both a and b are true - that's what you would expect, right? In FPC, a=b only returns true if they both have the same numeric value.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You're right, Delphi really processes BOOL variables in special way.

Code: Select all

var
   a, b: BOOL;
   a1, b1: LongInt;
   c: boolean;
begin
  a := BOOL(1);
  b := BOOL(-1);
  c := a = b; // c becomes true
end;
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, that's how it would be expected - true=true should give true independent from the internal representation...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Confirm fixed in 8.0β16.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I cannot test with encrypted files, since I only have the "Home" version of Windows 7, but I could reproduce the bug for compressed files, and can confirm that search for attributes by plugin now works in TC 8.0b16 x64 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
kicko
Junior Member
Junior Member
Posts: 2
Joined: 2012-01-10, 11:02 UTC
Contact:

Post by *kicko »

Thank you guys ... you're great ;)
Post Reply