Subject: bug#10733: 24.0.93; w32 file truncation

From: Óscar Fuentes <[email-masked]>
Date: Mon, 06 Feb 2012 01:20:42 +0100

Juanma Barranquero <[email-masked]> writes:

>> When opening a file on an NTFS file system the file opens as if the
>> content is truncated to size of 65375 characters.  This happens when
>> the file is an NTFS symbolic link which is made by mklink command of
>> cmd.exe.  There is no problem if the target file of the NTFS symbolic
>> link is smaller than this size.
>
> Can you please give a step-by-step recipe, starting from "emacs -Q"?

I can reproduce the problem on Windows 7 64 bits:

* Run a cmd shell as Administrator (mklink is a privileged command).

* Navigate to a directory with a text file larger than 64 KB (let's
  suppose that the file is named foo.txt).

* mklink bar.txt foo.txt.

* runemacs -Q bar.txt

* The file appears truncated in Emacs.

Very odd.