all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* vc-bzr failed in Windows XP
@ 2008-07-06 17:02 Leo
  2008-07-06 17:38 ` Eric Hanchrow
  2008-11-15  4:25 ` chunlinyao
  0 siblings, 2 replies; 5+ messages in thread
From: Leo @ 2008-07-06 17:02 UTC (permalink / raw)
  To: emacs-devel

Hi There6,

I am running Emacs on Windows XP downloaded from
http://ourcomments.org/Emacs/EmacsW32.html. The version is GNU Emacs
23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-06-29 on LENNART-69DE564.

sha1sum.exe downloaded from
ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe.

Now when I try to open a file in bzr repo and type C-x v =, Emacs throws
the following backtrace:

Debugger entered--Lisp error: (args-out-of-range 1 41)
  buffer-substring(1 41)
  (let ((prog sha1-program) (args nil)) (when (consp prog) (setq args ...) (setq prog ...)) (apply (quote process-file) prog (file-relative-name file) t nil args) (buffer-substring (point-min) (+ ... 40)))
  (progn (set-buffer-multibyte nil) (let (... ...) (when ... ... ...) (apply ... prog ... t nil args) (buffer-substring ... ...)))
  (unwind-protect (progn (set-buffer-multibyte nil) (let ... ... ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ...) (and ... ...)))
  (with-current-buffer temp-buffer (unwind-protect (progn ... ...) (and ... ...)))
  (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...)))
  (with-temp-buffer (set-buffer-multibyte nil) (let (... ...) (when ... ... ...) (apply ... prog ... t nil args) (buffer-substring ... ...)))
  vc-bzr-sha1("d:/thesis.repo/thesis.trunk/ClassicThesis.tex")
  vc-bzr-state-heuristic("d:/thesis.repo/thesis.trunk/ClassicThesis.tex")
  vc-bzr-registered("d:/thesis.repo/thesis.trunk/ClassicThesis.tex")
  apply(vc-bzr-registered "d:/thesis.repo/thesis.trunk/ClassicThesis.tex")
  vc-call-backend(Bzr registered "d:/thesis.repo/thesis.trunk/ClassicThesis.tex")
  #[(b) " \b 	# .

Kind regards,
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

        Use the better alternative -- http://www.openoffice.org/





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: vc-bzr failed in Windows XP
  2008-07-06 17:02 vc-bzr failed in Windows XP Leo
@ 2008-07-06 17:38 ` Eric Hanchrow
  2008-07-06 18:50   ` Leo
  2008-11-15  4:25 ` chunlinyao
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Hanchrow @ 2008-07-06 17:38 UTC (permalink / raw)
  To: emacs-devel

>>>>> "Leo" == Leo  <sdl.web@gmail.com> 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.

-- 
"New York Minute" is a textbook example of a film created as
a "vehicle" but without any ideas about where the vehicle should
go.
        -- Roger Ebert





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: vc-bzr failed in Windows XP
  2008-07-06 17:38 ` Eric Hanchrow
@ 2008-07-06 18:50   ` Leo
  0 siblings, 0 replies; 5+ messages in thread
From: Leo @ 2008-07-06 18:50 UTC (permalink / raw)
  To: Eric Hanchrow; +Cc: emacs-devel

On 2008-07-06 18:38 +0100, Eric Hanchrow wrote:
>>>>>> "Leo" == Leo  <sdl.web@gmail.com> 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/




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: vc-bzr failed in Windows XP
  2008-07-06 17:02 vc-bzr failed in Windows XP Leo
  2008-07-06 17:38 ` Eric Hanchrow
@ 2008-11-15  4:25 ` chunlinyao
  2008-11-15  9:28   ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: chunlinyao @ 2008-11-15  4:25 UTC (permalink / raw)
  To: Emacs-devel


Hi leo

Because the elisp call sha1sum use stdin not filename.
elisp:
    sha1sum < you_file_path
But your sha1sum.exe only support:
    sha1sum you_file_path


-- 
View this message in context: http://www.nabble.com/vc-bzr-failed-in-Windows-XP-tp18304069p20512294.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: vc-bzr failed in Windows XP
  2008-11-15  4:25 ` chunlinyao
@ 2008-11-15  9:28   ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-11-15  9:28 UTC (permalink / raw)
  To: chunlinyao; +Cc: Emacs-devel

> Date: Fri, 14 Nov 2008 20:25:37 -0800 (PST)
> From: chunlinyao <chunlinyao@gmail.com>
> Cc: 
> 
> Because the elisp call sha1sum use stdin not filename.
> elisp:
>     sha1sum < you_file_path
> But your sha1sum.exe only support:
>     sha1sum you_file_path

??? What version of sha1sum do you have installed?  The one I have,
from Coreutils 5.3.0, does read stdin by default.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-15  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-06 17:02 vc-bzr failed in Windows XP Leo
2008-07-06 17:38 ` Eric Hanchrow
2008-07-06 18:50   ` Leo
2008-11-15  4:25 ` chunlinyao
2008-11-15  9:28   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.