Error creating file on Cyrillic: results in two files, one with trailing dot

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Andy Solo
Junior Member
Junior Member
Posts: 29
Joined: 2019-03-15, 12:56 UTC

Error creating file on Cyrillic: results in two files, one with trailing dot

Post by *Andy Solo »

Create a file "1ю1" (on Cyrillic) in an empty directory. I will save this file. There are two files in the directory:

Том в устройстве D имеет метку Hard_D
Серийный номер тома: 8462-2C02

Содержимое папки D:\TEMP

11.05.2022 15:43 <DIR> .
11.05.2022 15:43 0 1ю1
11.05.2022 15:43 0 1ю1.
2 файлов 0 байт
1 папок 399 605 121 024 байт свободно

This error has been going on since the old versions of the Total Commander.



Subject line adjusted by moderator from "Error creating file" to better reflecting the content
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: Error creating file on Cyrillic: results in two files, one with trailing dot

Post by *Flint »

Cannot confirm here. Only the file I created appears, no second "dotted" one.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Andy Solo
Junior Member
Junior Member
Posts: 29
Joined: 2019-03-15, 12:56 UTC

Re: Error creating file on Cyrillic: results in two files, one with trailing dot

Post by *Andy Solo »

Flint wrote: 2022-05-11, 13:18 UTC Cannot confirm here. Only the file I created appears, no second "dotted" one.
Use editor on F4:
"C:\Program Files\Far Manager\Far.exe" /e "%1"

Надо создавать файл именно 1ю1 или 2ю2 и т.д. Потом нажать F2 в Far. И получится два таких файла:

Содержимое папки C:\TEMP
11.05.2022 17:45 <DIR> .
11.05.2022 17:45 0 2ю2
11.05.2022 17:45 0 2ю2.
2 файлов 0 байт
1 папок 93 039 173 632 байт свободно
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Error creating file on Cyrillic: results in two files, one with trailing dot

Post by *white »

When the filename doesn't have a filename extension, TC adds a dot at the end, probably to prevent that editors add a default filename extension (like .txt). Apparently Far.exe /e cannot handle this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Error creating file on Cyrillic: results in two files, one with trailing dot

Post by *ghisler(Author) »

Yes, TC adds a dot at the end because otherwise notepad.exe will try to open filename.txt instead of filename when I just pass c:\path\filename to it.
You cannot create files with a dot at the end with normal Windows function calls, you have to use a very specific syntax to bypass the file system checks, which Far must be doing. I'm sorry but i don't think that there is a solution which works with both Far and Notepad.
Author of Total Commander
https://www.ghisler.com
Post Reply