[gstreamer-bugs] [Bug 165650] [API] gst_value_deserialize doesn't work correctly for NULL strings
bugzilla-daemon at bugzilla.gnome.org
Mon Nov 14 03:57:32 PST 2005
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Additional Comments From Benjamin Otte 2005-11-14 11:57 -------
I would personally prefer if the string serialization were able to (de)serialize
NULL strings since NULL strings are valid GValues. This is because at some point
someone might get the idea to serialize GObject properties with this API and
there it is definitely allowed.
FWIW, the D-Bus glib bindings have the same issue. Last I looked they just
errored out on NULL strings which wasn't helpful at all for me.
Next question: Do we serialize to UTF-8 or ASCII? In any case: How should we
handle control characters like line feeds, backspace and so on?
My solution would be to invent some sort of escape character (possibly % to
mimic printf) and use that to escape special cases. % => %%, <someweirdchar> =>
%<unicode-hexvalue-of-weird-char> and NULL => %
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs