Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Anton P.

You're right of course! I was misled by the coincidental ratio of Windows text size to UNIX text size. The mystery is solved :idea:
martin

Anton P. wrote:

So the problem does seem to lie in the remote panel: if WinSCP thinks that a remote file is ASCII text it displays its size in kilobytes, whereas if it thinks that a remote file is binary it displays its size in bytes. Perhaps you would consider displaying everything in bytes?

It is misunderstanding. Remote file panel assumes nothing. It displays actual file size. It is just that you have either downloaded or uploaded the file in ASCII/text mode, so the file size is actually different in load and remote directory.

Note that the file size in remote panel is NOT in kilobytes. It is just coincidence that the ratio between file size in Windows text file format and Unix text file format for your file is approximatelly 1024/1000.

If you haven't done already, read documentation for transfer modes. Maybe it will make it clear (alhought your issue is not covered there directly).
Anton P.

Apologies, the .tex mask is indeed there, I just foolishly missed it somehow (and I double-checked, too) :oops:

So the problem does seem to lie in the remote panel: if WinSCP thinks that a remote file is ASCII text it displays its size in kilobytes, whereas if it thinks that a remote file is binary it displays its size in bytes. Perhaps you would consider displaying everything in bytes?

Best wishes,
Anton
martin

Anton P. wrote:

Now .tex files certainly are ASCII text, but I don't think WinSCP knows that---they don't appear in the "Transfer the following in text mode" mask.

The *.tex mask is part of the default value of "Transfer the following in text mode":
*.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml

Are you sure you do not have it there?
Anton P.

Yes, it does seem to depend on something like that.

Files whose size is displayed the same in local and remote panels:

.bib; .aux; .bak; .log;

yet the size of a .tex file is displayed differently in each panel. (All these file extensions correspond to the typesetting system LaTeX.)

Now .tex files certainly are ASCII text, but I don't think WinSCP knows that---they don't appear in the "Transfer the following in text mode" mask.

As you say, the size change is definitely in the right ratio to be able to say that a file size is written in bytes on one panel and kilobytes in the other.
martin

Re: File size is displayed differently in local and remote panel

Well, I would say that the difference is caused by text/ascii mode transfer. And by coincidence the size change seem to be in ratio 1000/1024. Isn't it?
Anton P.

File size is displayed differently in local and remote panel

Hi Martin,

It seems to me that a file's size is displayed differently in the local and remote panels. In the remote panel, it is displayed (in the Size column) in kilobytes (eg 47,475) whereas in the local panel it appears to be displayed in bytes (48,540)---and if you view the local file's properties, it says "47.4 KB (48,540 bytes)"

This is very confusing, and I am often tricked into thinking that the file versions are different when in fact the time stamp shows them to be the same.

Could you change this so that both panels display size in the same format?

Cheers then,
Anton