[darcs-devel] [issue2286] darcs changes: basic usage results in "invalid byte sequence"

Owen Stephens bugs at darcs.net
Fri Dec 21 19:24:03 UTC 2012


Owen Stephens <darcs at owenstephens.co.uk> added the comment:

This can be reproduced for me in the current screened repo: 
> darcs cha -p 'Added a test for changes --context patch selection.'

Sun Nov 20 17:01:57 GMT 2005  darcs: ByteString: hGetContents: invalid
argument (invalid byte sequence)

Strangely, annotate doesn't fail and displays fine:

>  darcs annotate -p 'Added a test for changes --context patch selection.'
[Added a test for changes --context patch selection.
Daniel Bünzli <daniel.buenzli at epfl.ch>**20051120170157] hunk
./tests/changes.pl 45
+
+### $
+
+like(`$DARCS changes --context --from-patch="num 1\$" --to-patch="num
4\$"`,
+     qr/^\n.*\n\n.*num 4\n.*\n\n.*num 3\n.*\n\n.*num 2\n.*\n\n.*num
1\n.*\n$/,
+     'changes --context --from-patch="num 1$" --to-patch="num 4$"');

Finding the inventory file containing the problem patch by Daniel:

darcs.net/ $ zcat
_darcs/inventories/0000005604-bb001bedd0ab7044fd8e0386b2de3e79eefff69b9fe3776d035a9f2cedb354ad
> busted_inventory.txt
darcs.net/ $ file busted_inventory.txt 
busted_inventory.txt: ISO-8859 text

but taking the inventory mentioned in pristine.hashed:

darcs.net/ $ zcat
_darcs/inventories/0000039357-ec588bcc63ff07b473b17e855d55d0858e7d7ecd9563a0849edaab1f672fc68c
> good_inventory.txt
darcs.net/ $ file good_inventory.txt 
good_inventory.txt: ASCII text

That must be something to do with it!

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2286>
__________________________________


More information about the darcs-devel mailing list