mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 17:00:29 +01:00
shared: add FIXME about interpretation of variant-attribute bytestrings
This commit is contained in:
parent
d507563a80
commit
f768bd8091
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue