[openbeostranslationkit] Test libtranslation.so

No very long ago, Brian found a bizarre problem with the OpenBeOS
libtranslation.so. I've been trying to figure out the problem since he
told me about it, and haven't been able to reproduce the problem he found.
However, I ended up having a completely different problem and was able to
fix it.

Brian was unable to open PPM files with the MultiTest program (a program
that constantly loads and unloads images in attempt to crash
libtranslation.so) because the JPEGTranslator claimed it was more
compatible with PPMs than the PPMTranslator. However, he had no problems
opening PPM images in ShowImage, which makes no sense.

I, on the other hand, had no problems opening PPM files with MultiTest,
but ShowImage ate up all my CPU time when I tried to use it with a PPM.

So, I put tons of printf()s in libtranslation.so and recompiled Be's
PPMTranslator with printf()s and did some debugging that way. What I found
out was that our libtranslation.so picked the Text translator as the best
translator for PPM images. So, I added some code into BTranslatorRoster
that prevented text translators from being chosen if a translator with a
group other than B_TRANSLATOR_TEXT claimed to be able to handle the data.
Hopefully, this will solve Brian's problem as well.

The reason why I sent this e-mail is that I want everyone on the team to
test our libtranslation.so, so that if there are any other weird problems
like this, we can find them and fix them. The download and the
instructions for installing libtranslation.so are available at
http://www.cs.usm.maine.edu/~wilber/obos/. Everyone, please try it out and
let me know if you find any problems.

Also, if you missed Newsletter 21,
(http://open-beos.sourceforge.net/nsl.php) Michael Phipps has decided to
change the way teams work. The changes are not on the website yet, but
please read about them in the "Project changes on the way" article.



Other related posts: