shared: add FIXME about interpretation of variant-attribute bytestrings

This commit is contained in:
Beniamino Galvani 2020-06-04 13:43:31 +02:00
parent d507563a80
commit f768bd8091

View file

@ -4919,9 +4919,11 @@ _nm_utils_format_variant_attributes_full (GString *str,
value = g_variant_get_boolean (variant) ? "true" : "false";
else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_STRING))
value = g_variant_get_string (variant, NULL);
else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_BYTESTRING))
else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_BYTESTRING)) {
/* FIXME: there is no guarantee that the byte array
* is valid UTF-8.*/
value = g_variant_get_bytestring (variant);
else
} else
continue;
if (sep)