I have not modified any of the jni code for the gnome classes beyond
what is created by the generator. I don't think the merge will be too
bad. I will try to get gnome's jni code updated this evening.
On Mon, 2002-08-19 at 06:30, Jeffrey Morgan wrote:
> > I've been working on an example app for the ButtonBoxes:
> > /src/examples/gtk/buttonbox/ButtonBoxes.java
> > (I have implemented gtk Frame btw)
> >
> > The main problem seems to be with string encodings.
> > The button box example gives the warnings:
> > ** (java-gnome:14365): WARNING **: Invalid UTF8 string passed to
> > pango_layout_set_text()
> >
> > In my code, I have been using String.getBytes() with no encoding
> > argument. I guess this is wrong. I have tried a few examples and read
> > through the gtk docs, but have been unable to determine what should be
> > passed to the getBytes method.
> >
> > This seems to affect all classes which pass Strings to native methods.
>
> If you get the latest from cvs and run the generator it will
> produce C code that will fix this problem. We now have the task
> of merging this C code with the code in the src/jni directory.
> I will do this for all of the glib, atk, pango, and gtk classes
> today. The Java will not change; you still need to pass in an
> array of bytes.
>
> -Jeff
--
Philip A. Chapman
Product Development Manager
ACO Information Services
866-897-STAR (7827)
--
Philip A. Chapman
|