Commit 043d1176 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

Remove the lang= prefix from the xmp text fields.

[bug #605499]
parent 8321eac9
......@@ -208,8 +208,15 @@ set_file_info (GFileInfo *info,
else
formatted_value_utf8 = g_locale_to_utf8 (formatted_value, -1, NULL, NULL, NULL);
}
else
formatted_value_utf8 = g_locale_to_utf8 (formatted_value, -1, NULL, NULL, NULL);
else {
const char *formatted_clean;
if (strncmp (formatted_value, "lang=", 5) == 0)
formatted_clean = strchr (formatted_value, ' ') + 1;
else
formatted_clean = formatted_value;
formatted_value_utf8 = g_locale_to_utf8 (formatted_clean, -1, NULL, NULL, NULL);
}
/*
g_print ("%s (%s): %s (%s)\n", key, description, formatted_value, raw_value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment