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 584445 - gst.TagList getters and setters should convert unicode objects to UTF-8 string objects
gst.TagList getters and setters should convert unicode objects to UTF-8 strin...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 0.10.16
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-01 12:05 UTC by Thomas Vander Stichele
Modified: 2009-06-01 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implements conversion (2.71 KB, patch)
2009-06-01 12:05 UTC, Thomas Vander Stichele
none Details | Review
generic conversion for G_STRING <-> unicode (2.68 KB, patch)
2009-06-01 12:33 UTC, Thomas Vander Stichele
none Details | Review
updated patch, fixes another test where isinstance(.., str) was used (3.40 KB, patch)
2009-06-01 12:35 UTC, Thomas Vander Stichele
accepted-commit_now Details | Review

Description Thomas Vander Stichele 2009-06-01 12:05:12 UTC
GstTagList strings are implicitly utf-8.

It should be possible to do:

taglist[gst.TAG_ARTIST] = u'Sígur Ròs'

the attached patch implements this.
Comment 1 Thomas Vander Stichele 2009-06-01 12:05:52 UTC
Created attachment 135722 [details] [review]
implements conversion
Comment 2 Thomas Vander Stichele 2009-06-01 12:33:24 UTC
Created attachment 135723 [details] [review]
generic conversion for G_STRING <-> unicode
Comment 3 Thomas Vander Stichele 2009-06-01 12:35:50 UTC
Created attachment 135724 [details] [review]
updated patch, fixes another test where isinstance(.., str) was used
Comment 4 Edward Hervey 2009-06-01 13:50:04 UTC
Ok, please commit !
Comment 5 Thomas Vander Stichele 2009-06-01 20:11:30 UTC
commit 88f3323bfe15ae6aee762ba64588980b6036d4ea
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Mon Jun 1 19:08:47 2009 +0200

    Convert unicode objects to utf-8 encoded G_STRINGs