After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552375 - String encoding needed in the GIR.
String encoding needed in the GIR.
Status: RESOLVED DUPLICATE of bug 565147
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 561253 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-15 16:19 UTC by Mike Kestner
Modified: 2015-02-07 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug 552375 - Support (filename) annotation for filename-encoded strings (4.50 KB, patch)
2009-02-13 20:50 UTC, Colin Walters
none Details | Review
Bug 552375 - Support (filename) annotation for filename-encoded strings (4.50 KB, patch)
2009-02-13 20:51 UTC, Colin Walters
none Details | Review
Bug 552375 - Support (filename) annotation for filename-encoded strings (4.50 KB, patch)
2009-02-13 20:56 UTC, Colin Walters
none Details | Review

Description Mike Kestner 2008-09-15 16:19:45 UTC
Please describe the problem:
string types can be filename encoded and utf8 encoded.  An indication of this needs to be included in the GIR.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Colin Walters 2008-09-15 16:23:00 UTC
Currently the typelib supports both "utf8" and "filename".  Do we need any more than those two?
Comment 2 Havoc Pennington 2008-09-15 16:26:44 UTC
We'll also need binary (uint8), but we have that - for things like:

gssize   g_output_stream_write         (GOutputStream             *stream,
					const void                *buffer,
					gsize                      count,
					GCancellable              *cancellable,
					GError                   **error);
gboolean             gdk_pixbuf_loader_write         (GdkPixbufLoader *loader,
						      const guchar    *buf,
						      gsize            count,
                                                      GError         **error);

I think some stuff like this takes a char* instead of a void*/guchar* but maybe not.

I think weird encodings could be treated as binary so utf8 and filename would be the only ones that require special handling.
Comment 3 Colin Walters 2009-02-13 20:12:30 UTC
*** Bug 561253 has been marked as a duplicate of this bug. ***
Comment 4 Colin Walters 2009-02-13 20:50:29 UTC
Created attachment 128684 [details] [review]
Bug 552375 - Support (filename) annotation for filename-encoded strings

In addition to utf-8, we need a mechanism to express that strings are
filename-encoded.
Comment 5 Colin Walters 2009-02-13 20:51:55 UTC
Created attachment 128685 [details] [review]
Bug 552375 - Support (filename) annotation for filename-encoded strings

In addition to utf-8, we need a mechanism to express that strings are
filename-encoded.
Comment 6 Colin Walters 2009-02-13 20:56:28 UTC
Created attachment 128686 [details] [review]
Bug 552375 - Support (filename) annotation for filename-encoded strings

In addition to utf-8, we need a mechanism to express that strings are
filename-encoded.
Comment 7 Johan (not receiving bugmail) Dahlin 2009-02-19 18:09:25 UTC
Comment on attachment 128686 [details] [review]
Bug 552375 - Support (filename) annotation for filename-encoded strings

I thought about getting rid of utf8 and replace it with (type utf8), which would also handle this case 'out-of-the-box'. I'm sure there are going to be other types we want to override in the future.

It's a bit extra work, but should pay off. What do you think?
Comment 8 Colin Walters 2009-02-19 18:29:53 UTC
Sounds good.  Note I just did a patch for bug 565147 which makes (type) work better and may in fact just work out of the box for (type filename).
Comment 9 Colin Walters 2009-02-23 20:32:12 UTC
Ok, I've merged the tests from this patch into bug 565147 and verified (type filename) works.

*** This bug has been marked as a duplicate of 565147 ***
Comment 10 André Klapper 2015-02-07 16:50:48 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]