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 591603 - Make _g_utf8_make_valid public
Make _g_utf8_make_valid public
Status: RESOLVED DUPLICATE of bug 610969
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-08-12 20:45 UTC by Simon van der Linden
Modified: 2010-02-24 16:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make _g_utf8_make_valid public (6.09 KB, patch)
2009-08-12 21:08 UTC, Simon van der Linden
none Details | Review

Description Simon van der Linden 2009-08-12 20:45:42 UTC
Sometimes, for bindings, we need to convert an utf8-encoded string, which may be invalid. In Python, AFAIK, if the encoding is invalid, there is no way to get a Python unicode object out of it. In this case, _g_utf8_make_valid would be useful.
Comment 1 Simon van der Linden 2009-08-12 21:08:52 UTC
Created attachment 140587 [details] [review]
Make _g_utf8_make_valid public

Help regarding the doc is welcome!
Comment 2 Dan Winship 2010-02-24 16:38:21 UTC
duping to 610969, which is more complete

*** This bug has been marked as a duplicate of bug 610969 ***