[TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

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

Moderators: white, Hacker, petermad, Stefan2

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

[TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *white »

If you use cm_SetAttrib to set the file comment to ✓, it will set the comment to ? instead.

Discussed in the English forum here:
white wrote: 2023-09-05, 18:29 UTC
brontosaurusrex wrote: 2023-09-05, 17:52 UTC Did some more experimenting, trying to use '✓' with your method and somehow it doesn't stick, i get '?' instead when reopening 'files/change attributes menu trying to save the preset.
Either a bug or not supported. Note that in the Change attributes dialog, if you change plugin field tc.comment and use the >> button to enter ✓, it also places ? in the value field.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *ghisler(Author) »

Please provide an example of the parameters you used.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *tuska »

ghisler(Author) wrote: 2023-09-12, 12:16 UTC Please provide an example of the parameters you used.
Here and here are examples.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *white »

Example without parameters:

* Execute cm_SetAttrib
* Set plugin attribute tc.comment to ✓ and click OK
* ? is saved instead of ✓ and if you reopen cm_SetAttrib then it also shows ? instead of ✓

And:

* Execute cm_SetAttrib
* Select plugin attribute tc.comment and click the >> button
* Enter ✓ and press F2
* The value field now contains ? instead of ✓
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *ghisler(Author) »

You are right, it doesn't currently support Unicode. Use Ctrl+Z instead. I will investigate the problem.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *tuska »

HISTORY.TXT wrote:05.10.23 Release Total Commander 11.02 release candidate 1
13.09.23 Fixed: Change attributes: Field tc - comment didn't support setting Unicode comment (different codepage) (32/64)
This is partly fixed.
Thanks!

Comment: ✓
  1. OK: Button with e.g. command: OPENATTRIBUTES=Comment-OKii_for_FilesFolders (F2 saved setting)
  2. OK: Files > Change Attributes... > ☑️ Change plugin attributes: > tc | comment | ✓ > OK

white wrote: 2023-09-12, 12:26 UTC * Execute cm_SetAttrib
* Select plugin attribute tc.comment and click the >> button
* Enter ✓ and press F2
* The value field now contains ? instead of ✓
TC 11.02RC1 x86
If you press F2 or click on the button "F2 OK", the field "Value" is filled with approx. 230 characters instead of ✓.

TC 11.02RC1 x64
If you press F2 or click on the button "F2 OK", the field "Value" is filled with ?Ǣ instead of ✓.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *white »

tuska wrote: 2023-10-05, 17:13 UTC This is partly fixed.
Confirmed. When using the >> button, I still get ? instead of ✓.

If the file comment already contains ✓ and I use the >> button, the edit box shows 2 characters instead of ✓, but these characters translate to a ✓ when I click OK.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *ghisler(Author) »

Sorry, I didn't notice that there were two bug reports in one post.
If possible, please report one bug per post if you want to see them fixed.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *tuska »

ghisler(Author) wrote: 2023-10-06, 07:10 UTC If possible, please report one bug per post if you want to see them fixed.
Separate bug report:
[TC 11.02] Change Attributes: Plugin value field doesn't support unicode | >> Edit TC File comment

Due to the separate bug report, I consider this issue to be fixed.
Thank you for your efforts!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01] Change Attributes: Plugin value field doesn't seem to support unicode

Post by *ghisler(Author) »

Moderator message

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply