Mercurial > geeqie
diff src/exif.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.c Wed Oct 01 20:57:56 2008 +0000 +++ b/src/exif.c Sat Oct 04 20:28:31 2008 +0000 @@ -1493,7 +1493,7 @@ return NULL; } -const gchar *exif_get_tag_description_by_key(const gchar *key) +gchar *exif_get_tag_description_by_key(const gchar *key) { gint i; @@ -1502,7 +1502,7 @@ i = 0; while (ExifKnownMarkersList[i].tag > 0) { - if (strcmp(key, ExifKnownMarkersList[i].key) == 0) return _(ExifKnownMarkersList[i].description); + if (strcmp(key, ExifKnownMarkersList[i].key) == 0) return g_strdup(_(ExifKnownMarkersList[i].description)); i++; }