SOLVED - [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

SOLVED - [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *tuska »

The following post is an extract from that post:
viewtopic.php?t=80379
[11.02RC4] Colour assignment only works partially
 
In TC 11.02RC4 x64, x86 I found the following:

Content of Template for 'Change attributes' was removed:
File provided with TC comment "".
Only the title of the original is left.

Button with command: OPENATTRIBUTES=NameOfTemplate_Change attributes does not work anymore.
; OPENATTRIBUTES=Comment-OKii_for_FilesFolders

See also:
Button to toggle comment in descript.ion?
Excerpts of HISTORY.TXT
German Umlauts (ä,ö,ü,Ä,Ö,Ü) and special character: ß (!)
Last edited by tuska on 2023-10-29, 15:05 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *ghisler(Author) »

Where is the bug? when you delete or rename the saved search, it will not work any longer. Isn't that expected? How should TC know what was there?
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *tuska »

wincmd.ini - section [attrplugin] currently shows the following:

Code: Select all

Kommentar_OK_f r_Dateien-Ordner=tc.comment := OK	; German umlaut "ü" missing: für -> BUG! --- The button works anyway ...
							; Button: OPENATTRIBUTES=Kommentar_OK_f r_Dateien-Ordner ... WORKS!

Comment-OK_for_Files&Folders=tc.comment := OK		; OK
Comment-DEL_for_Files&Folders=tc.comment := ""		; OK

Comment-OKii_for_FilesFolders=?tc.comment := ?		; there should be a tick here: ✓  (Unicode)
							; Button: OPENATTRIBUTES=Comment-OKii_for_FilesFolders ... BUG!
What reason could I have had for renaming it?
Since the last bug fix on 6.10.2023 I no longer had any need for action.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *Gral »

tuska wrote: 2023-10-29, 13:50 UTC Comment-OKii_for_FilesFolders=?tc.comment := ? ; there should be a tick here: ✓ (Unicode)
; Button: OPENATTRIBUTES=Comment-OKii_for_FilesFolders ... BUG!
What is this question mark doing here?

I can confirm that if I put a question mark in such a place, the saved template disappear and only the title remain.
So i don't put such a sign.

P.S. probably another side effect of unproper ini file conversion.
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

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: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: SOLVED - [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *white »

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

Moved to English forum.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SOLVED - [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *ghisler(Author) »

The wincmd.ini usually contains a line
SetEncoding=äö.do.not.remove
in ANSI (may look different in your language script) which is clearly NOT UTF-8, so notepad will not save the file as UTF-8 when it sees that line. I don't know how you managed to save the file as UTF-8, it shouldn't happen when you just save the file.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: SOLVED - [11.02RC4] Content of Template for 'Change attributes' was removed - only title is left

Post by *tuska »

ghisler(Author) wrote: 2023-10-30, 09:53 UTC I don't know how you managed to save the file as UTF-8, ...
Unfortunately, I can no longer remember when I might have made such a saving.
To be on the safe side, I have now changed the default encoding in my text editors accordingly.
Post Reply