Subject: Bug: Error when viewing symbolically linked file in Windows 7

From: Gustav Wikström <[email-masked]>
Date: Mon, 18 Feb 2013 18:42:47 +0100

Description:
When viewing files in windows 7 that are symbolically linked the buffer
cuts the file at 2^16 bytes of information.

To reproduce:
- Create or find a text-file that has content of more than 65536 bytes of
data.
- Link that file to a different place in your filesystem

  > set dest_folder=%HOMEPATH%\temp1\
  > set src_folder=%HOMEPATH%\temp2\
  > MKLINK "%dest_folder%\init.org"         "%src_folder%\.emacs.d\init.org"

- Open the linked file in emacs.
- Go to the last point in the buffer containing the file.
- Observe the position of POINT (M-x = )
- Do the same with the original file and observe the position of POINT at
the end of buffer.

Obtained result:
The position of point in the linked buffer is 65536 while the point is
higher when opening the non-linked file.

I.e. the whole file is not visible in the buffer for the linked file

Expected result:
The position of point is the same in both buffers.

Environmental parameters:
- GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
- Windows 7 32bits & 64bits