Shakespeer icon indicating copy to clipboard operation
Shakespeer copied to clipboard

empty filelist

Open rufuscoder opened this issue 13 years ago • 3 comments

Original author: [email protected] (September 12, 2008 21:20:38)

What steps will reproduce the problem?

  1. Try opening the attached filelist with Shakespeer.

What is the expected output? What do you see instead? The Filelist is empty (no errors)

What version of the product are you using? On what operating system? Shakespeer 0.9.10 on Mac OS

Please provide any additional information below. Seems to be perfectly valid xml (Other DC clients can handle it perfectly well). I took a quick look at the source code (splib/xml.c). I think it's an issue with the shakespeer xml parser. It seems like it's parsing the files line by line, which causes problems with filelists without newline for each file.

Original issue: http://code.google.com/p/shakespeer/issues/detail?id=66

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on December 02, 2008 20:42:25 could reproduce this bug for filelists created by microdc2.

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on January 18, 2010 19:35:58 I've patched this for my local version, its not pretty (I just reformat the xml file) and adds a dependency on libxml2, but it works (for the most part... I have had a few errors here and there but I've been to lazy to trace then. It might not have anything to do with this).

I've been hacking apart Shakespeer to index my university's Hub so my Makefiles are a real mess right now, so I can't do a simple diff on them. In order to compile you need to have libxml2 installed and make sure something like this is in common.mk (There might be somewhere else you have to put this too):

HEADLESS_CFLAGS = /usr/local/bin/xml2-config --cflags HEADLESS_LDFLAGS = /usr/local/bin/xml2-config --libs

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on January 22, 2010 05:28:53 So, after posting my quick hack, I got annoyed and rewrote the whole xml parsing thing using libxml2 instead. It's not completely perfect since I used the existing framework so I didn't have to worry about changing things everywhere and I didn't debug it completely. But anyways, it's attached.

rufuscoder avatar Jun 08 '13 21:06 rufuscoder