[TC1100b8+] F4 Edit and DOS names not fixed in 32-bit systems

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

[TC1100b8+] F4 Edit and DOS names not fixed in 32-bit systems

Post by *Usher »

There is a fix in beta8 for passing DOS names on NTFS file system to editors.
HISTORY.TXT wrote:16.06.23 Fixed: F4 edit: On 64-bit Windows, always pass long name (not DOS name) to editor when no parameter is given (use %1 for short DOS name) (32/64)
Unfortunately, it doesn't work fot 32 bir TC in Windows XP.

Do the following tests:
1. Run TC 11.00 B9+ with a fresh ini in 32-bit Windows XP.
2. Press Shift+F4 to create file "longfilename.txt" and open it in Notepad.
3. Select File -> Save as... in Notepad menu. You will see DOS name "LONGFI~1.TXT" rather than expected "longfilename.txt".
4. Close Notepad, use F4 to reopen the file and once again try to use Save as... menu - LONGFI~1.TXT will be seen again.
5. Close Notepad, select the file again and just press Enter to open the file in Notepad. Now you will see the proper longfilename.txt when using Save as... menu.

TC 32-bit works OK in 64-bit Windows 7 and newer 64-bit Windows, as reported by other users. However, I suspect that noone tested 32-bit TC in 32-bit Vista, Windows 7 or newer systems. I have no access to those 32-bit systems now so I cannot confirm the bug presence there.
Last edited by Usher on 2023-07-05, 18:05 UTC, edited 1 time in total.
Andrzej P. Wozniak
Polish subforum moderator
cpp64
Junior Member
Junior Member
Posts: 83
Joined: 2023-05-12, 16:03 UTC

Re: [TC1100b8+] F4 Edit an DOS names not fixed in 32-bi systems

Post by *cpp64 »

F4 for TC with no parameters is different for XP 32-bit and Windows 10 64-bit.

--------------------
f4.exe
--------------------
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
{
MessageBox(NULL, lpszCmdLine, "F4", MB_OK);
return 0;
}

--------------------
os: windows xp 32bit
tc: 11.00b9 32bit
--------------------
# 8.3 name
Editor=f4.exe
Editor=f4.exe %1

# long filename
Editor=f4.exe "%1"

--------------------
os: windows 10 64bit
tc: 11.00b9 64bit
--------------------
# 8.3 name
Editor=f4.exe %1

# long filename
Editor=f4.exe
Editor=f4.exe "%1"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC1100b8+] F4 Edit an DOS names not fixed in 32-bi systems

Post by *ghisler(Author) »

Confirmed, as the title says this was for 64-bit only. I will add some code for 32-bit to detect when notepad.exe is given without directory.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC1100b8+] F4 Edit and DOS names not fixed in 32-bit systems

Post by *Usher »

Seems to be fixed in 32-bit TC 11.00 beta10
HISTORY.TXT wrote:05.07.23 Fixed: F4 edit: On 32-bit Windows, pass long name (not DOS name) to notepad.exe also when provided without path (32)
Andrzej P. Wozniak
Polish subforum moderator
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC1100b8+] F4 Edit and DOS names not fixed in 32-bit systems

Post by *white »

Moderator message from: white » 2023-07-05, 23:15 UTC

Moved to Fixed bugs.
Post Reply