2009/6/22 Oliver Tappe <zooey@xxxxxxxxxxxxxxx>: > Hi Adrien, > > On 2009-06-21 at 22:50:48 [+0200], PulkoMandy <pulkomandy@xxxxxxxxx> wrote: >> >> I've been working on the plain text add-on, however i've run into a >> strange problem when testing it. >> Here is how to reproduce : >> >> -Generate a plaintext catalog file using collectcatkeys. See one of my >> previous blog posts for that > > Having access to the code for PlainTextCatalog would help a lot in trying to > reproduce the problem - please post your current patch here. > >> -Try to link it using linkcatkeys (to a DefaultCatalog catalog file) >> This will crash linkcatkeys in the PlainTextCatalog::ReadFromFile at >> the line "if(!ss.good()) {". ss is an istringstream and it seems to >> work well apart of that. I tried to reproduce the problem in a small >> test program, but did not manage to do so. The syslog reports the >> crash, saying "invalid opcode", so I'm thinking my compiler got >> screwed up in some way. > > Hm, I am not yet convinced that the compiler is the problem - but I suppose > we'll find that out soon enough. > > Have you tried to produce a simple test add-on that contains just what's > needed for the bogus line of code? Maybe the problem only shows when the > invocation of ss.good() is done from within an add-on? > > cheers, > Oliver > > woops, I forgot to attach the patch, of course. Today I tried to create a minimal test add on, but I can't manage to instanciate it properly. So, here is the failing plaintext add on. Any kind of help on this problem is welcome. While i'm here : I tried to build ICU from within Haiku, but ./configure didn't even start to run, it said /bin/sh was not found ("no such file or directory"). Maybe it's because i used the .zip archive instead of the tar.gz, but I did not find an easy way to transfer the tgz to haiku, i need to do that when building an haiku image as my network card is not supported in haiku... Is there a way to extract a tgz to the haiku image when building it ? -- Adrien Destugues / PulkoMandy Elève ingénieur ENSSAT EII1- www.enssat.fr GSoC student for Haiku - http://haiku-os.org GrafX2 project team - http://code.google.com/p/grafx2