TC7rc5 - Compare By Content, Edit mode, Save as, wrong ext

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

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

TC7rc5 - Compare By Content, Edit mode, Save as, wrong ext

Post by *white »

Select two files which DO have a file name extension and open the Compare contents dialog (menu Files/Compare By Content).
Edit one of the files and save that file under a different name without file name extension.
Result: The new file has the same file name extension as the old file.
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Hm, this issue seems not to be TC related. I just tried a few apps (Firefox, PsPad, Word, XNView) in XPSP2 and all their 'save as' dialogs behave the way you described.

So this seems to be some 'smart' autocomplete 'feature' the dudes at M$ implemented into the standard dialog.
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

2StickyNomad

Yes, you are right. How could I forget. Time to go to sleep...

Edited: Still awake.. How many editors behave like this? UltraEdit does not have this behavior. Neither has Notepad+. For a plain text editor not to be able to save a file with file name extension as a file without file name extension is ...not good I think.

Edited 2:It used to be like this (for editors): The default file name extension when no extension is specified by the user, is the file name extension of the file type listed in the save as dialog. When the user enters a dot at the end of the file name, he explicitly enters a file name without extension.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

When the user enters a dot at the end of the file name, he explicitly enters a file name without extension.
Not in either Notepad, nor Wordpad (Win XP) In that case the file gets the name: myname..txt (note - two dots).
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
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Not in either Notepad, nor Wordpad (Win XP) In that case the file gets the name: myname..txt (note - two dots).
...because you have chosen "*.txt" as file type.
Either change type to "All files" or add quotes instead of trailing dot.

Icfu
This account is for sale
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

icfu wrote: .. or add quotes instead of trailing dot.
That works for TC too.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is intentional. TC keeps the extension of the original file, mainly because the file save dialog always proposes a name without extension. If you want a different extenstion, you need to enter it (or a dot, as proposed above, if you want an empty extension).
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:If you want a different extension, you need to enter it (or a dot, as proposed above, if you want an empty extension).
Entering a dot does not work! One has to use quotes.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Entering a dot does not work!
It works here...
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
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

petermad wrote:
Entering a dot does not work!
It works here...
Here (TC7rc5, Windows 98) the file gets the name: myname..txt (two dots).
Post Reply