Filename will be truncated even FTP server send correct filename.

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
charleshwu
Junior Member
Junior Member
Posts: 4
Joined: 2020-02-09, 06:38 UTC

Filename will be truncated even FTP server send correct filename.

Post by *charleshwu »

The filename has been truncated as below:
"光現出版, 銷售的科學:科學幫你駭進顧客大腦!順著對方的決策邏輯溝通,讓你碰到奧客、壞景氣都順利成交(The Science of Selling:Proven Strategies to Make Your Pitch, Influence Decisions, and Close...) (2019.03.13) B"

But the properties of the dir. was correct as below:
"-rw-rw-rw- 1 1000 0 57420992 Oct 31 15:05 光現出版, 銷售的科學:科學幫你駭進顧客大腦!順著對方的決策邏輯溝通,讓你碰到奧客、壞景氣都順利成交(The Science of Selling:Proven Strategies to Make Your Pitch, Influence Decisions, and Close...) (2019.03.13) By David Hoffeld; 周詩婷 9789869742719.pdf"

Seems it is a bug on FTP dir list parser.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Filename will be truncated even FTP server send correct filename.

Post by *ghisler(Author) »

This can happen when the name contains a date and size-lookalike, and the server doesn't support MLSD (machine list directory).

Solution: Define your own server type. It's easy: During the connection, press Alt+Shift+Enter with the focus in the ftp directory list, then choose the "Unix" sample. It should work without modifications.
Author of Total Commander
https://www.ghisler.com
charleshwu
Junior Member
Junior Member
Posts: 4
Joined: 2020-02-09, 06:38 UTC

Re: Filename will be truncated even FTP server send correct filename.

Post by *charleshwu »

Thanks for your reply.
I have follow your comment by press the ALT-SHIFT-Enter and choose unix but file name was still be truncated.
Image: https://i.imgur.com/7dALxv4l.png

Seems the parser will limit the filename when dir listing data was coded by UTF8.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Filename will be truncated even FTP server send correct filename.

Post by *ghisler(Author) »

Could you send me the raw listing from the server to support at ghisler dot com, please?
1. Connect as usual and go to the folder with this file
2. Switch to the other (local) panel (do not disconnect!)
3. In the Total Commander command line, write
cd %temp%
and press ENTER.
4. Send me the newest temp file name something like FTPxyz.TMP
Author of Total Commander
https://www.ghisler.com
charleshwu
Junior Member
Junior Member
Posts: 4
Joined: 2020-02-09, 06:38 UTC

Re: Filename will be truncated even FTP server send correct filename.

Post by *charleshwu »

Thanks for your reply.
I have send the raw listing from server to support@ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Filename will be truncated even FTP server send correct filename.

Post by *ghisler(Author) »

Thanks for the sample listing. Please try with Total Commander 9.50a rc1. It will support longer Unicode names now. The problem is that the names get very long in UTF-8, because every Chinese ideogram takes multiple bytes.
Author of Total Commander
https://www.ghisler.com
charleshwu
Junior Member
Junior Member
Posts: 4
Joined: 2020-02-09, 06:38 UTC

Re: Filename will be truncated even FTP server send correct filename.

Post by *charleshwu »

Great!
It works correct now.
Thanks for your update.
Post Reply