From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10733: 24.0.93; w32 file truncation Date: Mon, 06 Feb 2012 06:05:58 +0200 Message-ID: <83zkcwbo7t.fsf@gnu.org> References: <20120205.143400.416428493.Takaaki.Ota@am.sony.com> <20120205.161623.484163522.Takaaki.Ota@am.sony.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328501241 12973 80.91.229.3 (6 Feb 2012 04:07:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 04:07:21 +0000 (UTC) Cc: lekktu@gmail.com, 10733@debbugs.gnu.org To: "Ota, Takaaki" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 05:07:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuFrM-0002K5-2j for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 05:07:20 +0100 Original-Received: from localhost ([::1]:60826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuFrL-000226-9w for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2012 23:07:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuFrI-000221-M9 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 23:07:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuFrH-0003Gl-9I for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 23:07:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuFrH-0003Gh-7q for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 23:07:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuFs2-0001lf-Dr for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2012 23:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 04:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10733 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10733-submit@debbugs.gnu.org id=B10733.13285012576759 (code B ref 10733); Mon, 06 Feb 2012 04:08:02 +0000 Original-Received: (at 10733) by debbugs.gnu.org; 6 Feb 2012 04:07:37 +0000 Original-Received: from localhost ([127.0.0.1]:56103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuFrd-0001kw-7J for submit@debbugs.gnu.org; Sun, 05 Feb 2012 23:07:37 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60521) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuFra-0001kk-U3 for 10733@debbugs.gnu.org; Sun, 05 Feb 2012 23:07:35 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYY00L00DWDZX00@a-mtaout20.012.net.il> for 10733@debbugs.gnu.org; Mon, 06 Feb 2012 06:05:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.162.243]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYY00LRAE1VXO10@a-mtaout20.012.net.il>; Mon, 06 Feb 2012 06:05:56 +0200 (IST) In-reply-to: <20120205.161623.484163522.Takaaki.Ota@am.sony.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56545 Archived-At: > Date: Sun, 5 Feb 2012 16:16:23 -0800 > From: "Ota, Takaaki" > Cc: 10733@debbugs.gnu.org > > Yes, I can do that. > > 1. Have a text file that has more than 65375 characters. Let's call > this text file test.txt. > > 2. Run cmd.exe and change directory to where test.txt is located. > > 3. Then execute the next command in the cmd. > > mklink link.txt test.txt > > 4. Now run emacs as "emacs -Q link.txt" and do M-> (end-of-buffer). > > 5. Find that you are not seeing the end of the file but somewhere > around 65375 character location and the rest of the file is not > visible. Emacs on Windows doesn't support symlinks; they are new with Vista and Windows 7. Someone needs to write the code to support that, before this can be considered a bug (as opposed to a feature request). What you describe seems to indicate that insert-file-contents only reads the first 64KB portion of the file, and then bails out. Running Emacs under debugger and reporting where it bails out of the reading loop might help coming up with some band-aid solution. But full support of symlink requires specific support code, that just isn't there at this time.