diff src/exif-common.c @ 1053:77ca9a5d42be

fixed charset of exiv2 strings in non-utf8 locales
author nadvornik
date Sat, 04 Oct 2008 20:28:31 +0000
parents 338c21c87ff5
children 1646720364cf
line wrap: on
line diff
--- a/src/exif-common.c	Wed Oct 01 20:57:56 2008 +0000
+++ b/src/exif-common.c	Sat Oct 04 20:28:31 2008 +0000
@@ -541,7 +541,7 @@
 	return NULL;
 }
 
-const gchar *exif_get_description_by_key(const gchar *key)
+gchar *exif_get_description_by_key(const gchar *key)
 {
 	if (!key) return NULL;
 
@@ -552,7 +552,7 @@
 		key += 10;
 		for (i = 0; ExifFormattedList[i].key; i++)
 			if (strcmp(key, ExifFormattedList[i].key + 10) == 0)
-				return _(ExifFormattedList[i].description);
+				return g_strdup(_(ExifFormattedList[i].description));
 		}
 
 	return exif_get_tag_description_by_key(key);