SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

The following post is an extract from that post:
viewtopic.php?t=80379
[11.02RC4] Colour assignment only works partially
 
Search... Alt+F7
In the plug-in selection, only 2(!) plug-ins are available in TC 11.02RC4 x64.
In the plug-in selection, all plug-ins(!) are available in TC 11.02RC4 x86.

⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
Performed a NEW INSTALLATION of TC 11.02RC4 '64-bit+32-bit combined'.
[x] Search in plugins
Only the plugins tc and emptywdx are still available in TC 11.02RC4 x64.
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
Last edited by tuska on 2023-10-29, 15:03 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *ghisler(Author) »

That's because you damaged the file by saving it as UTF-8.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

Re: [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

ghisler(Author) wrote: 2023-10-29, 07:56 UTC That's because you damaged the file by saving it as UTF-8.
Mmhh.
I have not changed the coding of the file "wincmd.ini" for over 20 years.
Only now, on your advice, have I changed the coding to "ANSI".

In TC 11.02RC4 x86 I have 52 plugins available on the "Plugins" tab and the same wincmd.ini is used.
I do not understand your statement.
User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

Re: [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

I have now noticed the following:
My wincmd.ini from 7.10.2023 (backup) had coding "ANSI".

These files also had the coding "ANSI" at that time:
wincmd_Rename.ini
wincmd_Searches.ini
wincmd_Searches_Templates.ini

It is inexplicable to me how the file "wincmd.ini" was recoded to "UTF-8".
With the other three files, I can no longer determine the encoding at the time of the bug report,
because I have encoded all .ini files to "ANSI".

However, this caused the errors with the German umlauts, file attributes and missing plugins.

Conclusion:
After using the backup file "wincmd.ini" from 7.10.2023 everything works fine again.

I am very sorry for the inconvenience. :oops:
This is SOLVED.
User avatar
white
Power Member
Power Member
Posts: 5764
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *white »

Moderator message from: white » 2023-10-29, 15:09 UTC

Moved to English forum.
algol
Senior Member
Senior Member
Posts: 456
Joined: 2007-07-31, 14:45 UTC

Re: [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *algol »

deleted b/c of double-post created by forum-software instead of correctly editing the post.
Last edited by algol on 2023-10-29, 23:06 UTC, edited 1 time in total.
algol
Senior Member
Senior Member
Posts: 456
Joined: 2007-07-31, 14:45 UTC

Re: [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *algol »

tuska wrote: 2023-10-29, 15:03 UTC After using the backup file "wincmd.ini" from 7.10.2023 everything works fine again.
Is there a special reason as to why (in order to remedy the dysfunctional ini-file-situation) you went back to a saved backup (thereby possibly losing latest intentional changes) instead of simply re-encoding the latest version of your "wincmd.ini" as ANSI from the editor of your choice?

@ghisler (Author)
In the current Unicode-era with its capability to handle masses of special characters, not limited to but including German "Umlauts" as well, how difficult would it be to re-work TC in a manner that would allow it to also accept/cope with and correctly interpret UTF-8 encoded ini-files as the latter has become some sort of quasi-standard by now whereas the relevance of ANSI would seem to have diminished over time?
Last edited by algol on 2023-10-29, 23:07 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *petermad »

how difficult would it be to re-work TC in a manner that would allow it to also accept/cope with and correctly interpret UTF-8 encoded ini-files
Difficult becuse Windows does not support ini files in uft-8 format - see: https://ghisler.ch/board/viewtopic.php?p=353224#p353224
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
algol
Senior Member
Senior Member
Posts: 456
Joined: 2007-07-31, 14:45 UTC

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *algol »

petermad wrote: 2023-10-30, 00:18 UTC Difficult becuse Windows does not support ini files in uft-8 format - see: https://ghisler.ch/board/viewtopic.php?p=353224#p353224
Bummer! You never stop learning! So one more thought perhaps? Since UTF-8 because of its scope obviously cannot be mapped in full onto ANSI - would it perhaps help solving such incompatibility-problems to internally convert various common encodings (like ANSI, UTF-8, ASCII) to the more comprehensive yet Windows-supported UTF-16-(intel byte order)-format first - and then internally keep using UTF-16-IBO from there? This procedure should allow to correctly interpret even UTF-8-encoded ini-files while at the same time enabling TC to cope with a wealth of more exotic symbols, such as advanced math-operators and smileys at the same time.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *ghisler(Author) »

No, just save the ini file as UTF-16 (LE, little endian, or Intel byte order). This is fully supported by ini file functions.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

algol wrote: 2023-10-29, 22:57 UTC
tuska wrote: 2023-10-29, 15:03 UTC After using the backup file "wincmd.ini" from 7.10.2023 everything works fine again.
Is there a special reason as to why (in order to remedy the dysfunctional ini-file-situation) you went back to a saved backup
(thereby possibly losing latest intentional changes) instead of simply re-encoding the latest version of your "wincmd.ini"
as ANSI from the editor of your choice?
I did not think of this possibility (the excitement was probably too great and the joy about the problem solution).
I tried to solve the difference between 7.10.2023 and 29.10.2023 with a synchronisation between the two wincmd.ini
files. I think it's working fine again so far...

I used the "EncInfo" plugin for Total Commander to display the encoding: [=encinfo.Encoding].
ghisler(Author) wrote: 2023-10-30, 09:57 UTC No, just save the ini file as UTF-16 (LE, little endian, or Intel byte order).
This is fully supported by ini file functions.
These two codings are available.
1. UTF-16LE with Signature
2. UTF-16LE without Signature
Do you have to use a certain coding or does it not matter which coding of these two you use?

(I have now inserted Unicode characters into the file "wincmd.ini" for test purposes and
EmEditor Pro suggested UTF-16LE with Signature as the encoding.
I have therefore saved the wincmd.ini in this format).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *ghisler(Author) »

Yes, you need to always use UTF-16 with signature. Otherwise there is no easy way to check whether it's UTF-16LE or UTF-16BE.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

ghisler(Author) wrote: 2023-10-30, 14:40 UTC Yes, you need to always use UTF-16 with signature.
Otherwise there is no easy way to check whether it's UTF-16LE or UTF-16BE.
Thank you very much for the clarification! :)
algol
Senior Member
Senior Member
Posts: 456
Joined: 2007-07-31, 14:45 UTC

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *algol »

tuska wrote: 2023-10-30, 14:51 UTC
ghisler(Author) wrote: 2023-10-30, 14:40 UTC Yes, you need to always use UTF-16 with signature.
Otherwise there is no easy way to check whether it's UTF-16LE or UTF-16BE.
Thank you very much for the clarification! :)
In order to complete this important clarification I might add that many advanced editors (like "UltraEdit" in my case) also call this "Unicode signature" by the technical term "BOM"="Byte Order Mark". So "UTF-16LE with BOM" is the way to go.
User avatar
tuska
Power Member
Power Member
Posts: 4048
Joined: 2007-05-21, 12:17 UTC

Re: SOLVED - [11.02RC4 x64] Search (Alt+F7) - only 2 plugins to choose from

Post by *tuska »

algol wrote: 2023-10-30, 15:16 UTC In order to complete this important clarification I might add that many advanced editors
(like "UltraEdit" in my case) also call this "Unicode signature" by the technical term "BOM"="Byte Order Mark".
So "UTF-16LE with BOM" is the way to go.
Thanks!
Notepad3 also has the encoding with designation: Unicode (UTF-16 LE BOM).

Whereas, on the other hand, PSPad has these designations:
Unicode UTF-16 little endian
Unicode UTF-16 big endian
which again leaves me as a user at a loss as to which coding to use here.
Post Reply