[TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *white »

Create this saved search named "FindComment" to search file comments only:

Code: Select all

[searches]
FindComment_SearchFor=
FindComment_SearchIn=>
FindComment_SearchText=CommentToSearch
FindComment_SearchFlags=0|000002000020|||||||||0000||||Comment

[SearchCustomField]
0exts=*Comment:*
0fields=[=tc.comment]
Create this button to open the search window and load the FindComment search:

Code: Select all

TOTALCMD#BAR#DATA
LOADSEARCH FindComment

wcmicons.dll,47



-1
  • Click the button
  • The option "ANSI charset (Windows)" is checked (bug)
  • Go to the Load/Save tab and load the search "FindComment"
  • The option "ANSI charset (Windows)" is not checked (good)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *Horst.Epp »

Here in both cases ANSI charset (Windows)" is checked ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *white »

Horst.Epp wrote: 2022-11-06, 17:02 UTC Here in both cases ANSI charset (Windows)" is checked ?
There seem to be more issues depending on your last search.
You should get the result I described when you do the steps exactly as I mentioned.

If you load the search "FindComment" on the Load/Save tab and "ANSI charset (Windows)" isn't cleared, load it a second time.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *Horst.Epp »

white wrote: 2022-11-06, 18:07 UTC ...
If you load the search "FindComment" on the Load/Save tab and "ANSI charset (Windows)" isn't cleared, load it a second time.
Ok, in this case its cleared.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *petermad »

I can confirm the bug.

But try this:
1. Restart TC
2. Open the find Files dialog and load the saved "FindComment"
3. The "Ansi charset (Windows)" is checked.
4. Load the saved "FindComment" one more time.
5. The "Ansi charset (Windows)" is no longer checked checked.

It does not seem to be of any importance whether the "Comment" search plugin is enabled, but "Plugins" has to be enabled in the search dialog.

Notice that it is not possible to clear ALL options in the "Find text" section, if I try, the "Ansi charset (Windows)" will always automatically be checked.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *ghisler(Author) »

That's probably happening because the dialog box automatically checks "Ansi charset" when nothing is selected.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *petermad »

That's probably happening because the dialog box automatically checks "Ansi charset" when nothing is selected.
But something is selected: "Plugins" - which is apparently not recognized the first time the saved search is loaded, but IS recognized the second time.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *petermad »

2ghisler(Author)
1. Restart TC
2. Open the find Files dialog and load the saved "FindComment"
3. The "Ansi charset (Windows)" is checked.
4. Load the saved "FindComment" one more time.
5. The "Ansi charset (Windows)" is no longer checked checked.
The above still happens in TC 11.00b1 - see: https://tcmd.madsenworld.dk/findcommentsearch.mp4
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *white »

Confirmed. Bug with LOADSEARCH is fixed, bug with loading a saved search in the Find Files dialog isn't.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52] LOADSEARCH enables ANSI charset option when it shouldn't

Post by *ghisler(Author) »

That's why I request that you create a separate bug report for each bug! I didn't notice that there was a second report in this thread, sorry. :(
Author of Total Commander
https://www.ghisler.com
Post Reply