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

  • From: PulkoMandy <pulkomandy@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Sun, 21 Jun 2009 22:50:48 +0200

Hello,

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
-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.
If someone could try to apply this patch and see if the same bug
happen, and maybe help me isolate it, it would be nice. I'd like to
know if I should just rebuild my cross toolchain, or if there is a
real bug involved.
Beware, this patch apply to the "locale kit" branch, not haiku's trunk.

-- 
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

Other related posts: