From 436c533624176fc074c35da6a3a5312e08a3b920 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 10 Aug 2011 13:16:13 -0300 Subject: [PATCH] tests: tag: exif: Add tests for 'non-trivial' chars Adds two new cases to check that characters are properly converted to ascii when writen to exif and parsed correctly back to utf8 when read. --- tests/check/libs/tag.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/check/libs/tag.c b/tests/check/libs/tag.c index 1a22840..e6faa8f 100644 --- a/tests/check/libs/tag.c +++ b/tests/check/libs/tag.c @@ -1407,7 +1407,6 @@ do_simple_exif_tag_serialization_deserialization (const gchar * gsttag, GstTagList *taglist = gst_tag_list_new (); gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value); - do_exif_tag_serialization_deserialization (taglist); gst_tag_list_free (taglist); @@ -1466,6 +1465,12 @@ GST_START_TEST (test_exif_tags_serialization_deserialization) do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME, &value); + /* non ascii chars */ + g_value_set_static_string (&value, "AaÄäEeËëIiÏïOoÖöUuÜü"); + do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value); + g_value_set_static_string (&value, "Äë"); + do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value); + /* image orientation tests */ g_value_set_static_string (&value, "rotate-0"); do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION, -- 2.7.4