[haiku-gsoc] Re: localekit patch : plain text catalog (NON WORKING)

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Mon, 22 Jun 2009 10:00:07 +0200

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?


Other related posts: