Re: G::O::I based bindings and problem passing char array ref

I see that the data argument to "new_from_data()" is specified as a
utf-8 char array, but the contents of the PDF files (those that use
compressed blocks) are not actually straight UTF-8. Is it possible
that perl-G:I:O sees the specs and is forcing UTF-8 encoding on the
data at some point?

If I futz with the .gir and change the new_from_data() "data" parameter
type to a guint8 array (and then pass it a character array ref) I can
load and read the page number from most of the files that were
previously throwing errors. Then the script segfaults almost every

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]