From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: vc-bzr failed in Windows XP Date: Sun, 06 Jul 2008 19:50:47 +0100 Message-ID: References: <87lk0eewuw.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215370271 32442 80.91.229.12 (6 Jul 2008 18:51:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2008 18:51:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eric Hanchrow Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 06 20:51:57 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KFZL0-0006LO-46 for ged-emacs-devel@m.gmane.org; Sun, 06 Jul 2008 20:51:54 +0200 Original-Received: from localhost ([127.0.0.1]:33520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFZK9-0000Xe-3m for ged-emacs-devel@m.gmane.org; Sun, 06 Jul 2008 14:51:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFZK3-0000XL-Sr for emacs-devel@gnu.org; Sun, 06 Jul 2008 14:50:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFZK1-0000X8-EM for emacs-devel@gnu.org; Sun, 06 Jul 2008 14:50:54 -0400 Original-Received: from [199.232.76.173] (port=43348 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFZK1-0000X5-7x for emacs-devel@gnu.org; Sun, 06 Jul 2008 14:50:53 -0400 Original-Received: from ppsw-5.csi.cam.ac.uk ([131.111.8.135]:52001) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFZK0-0001d6-Ps for emacs-devel@gnu.org; Sun, 06 Jul 2008 14:50:52 -0400 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:59726) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1KFZJx-0008Uu-H4 (Exim 4.67) (return-path ); Sun, 06 Jul 2008 19:50:49 +0100 In-Reply-To: <87lk0eewuw.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Sun, 06 Jul 2008 10:38:47 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100391 Archived-At: On 2008-07-06 18:38 +0100, Eric Hanchrow wrote: >>>>>> "Leo" == Leo writes: > > Leo> sha1sum.exe downloaded from > Leo> ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe. > > Leo> Now when I try to open a file in bzr repo and type C-x v =, > Leo> Emacs throws the following backtrace: > > Leo> Debugger entered--Lisp error: (args-out-of-range 1 41) > Leo> buffer-substring(1 41) > > Try to figure out what the output of "sha1sum" is -- my guess is it's > not producing any output at all, or just an error. It looks to me like > the lisp code is merely assuming that the output contains a 41-byte > hexencoded SHA1 sum, which will be the case only if the program is > actually working properly. In DOS window, sha1sum FILE produces a correct output (e.g. ae7734e7a54353ab13ecba780ed62344332fbc6f putty.exe). However in the mentioned elisp, the temp buffer contains only: ,---- | usage: sha1sum filenames `---- Looks like a bug in that elisp code. -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the better alternative -- http://www.openoffice.org/