Re: G::O::I based bindings and problem passing char array ref
- From: Jeremy Volkening <jdv base2bio com>
- To: GTK-Perl List <gtk-perl-list gnome org>
- Subject: Re: G::O::I based bindings and problem passing char array ref
- Date: Thu, 2 Jun 2016 22:13:55 -0500
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
time...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]