From: David Zeuthen Date: Tue, 13 Mar 2012 21:29:55 +0000 (-0400) Subject: Change some D-Bus types from bytestring ('ay') to UTF8 ('s') X-Git-Tag: upstream/2.1.2~302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c622a9b20e8f874d90480e4168dbc9129696603;p=platform%2Fupstream%2Fudisks2.git Change some D-Bus types from bytestring ('ay') to UTF8 ('s') We are 100% sure that the changed items are always UTF-8 especially because udisks_device_udev_string() guarantees this and this function is used before setting the affected properties. This breaks the D-Bus API but there is no change in the libudisks2.so ABI since byte-strings and UTF-8 strings are mapped the same way when GDBus is being used. It may require restarting the system, but apart from that there is minimal interference from this change. The remaining byte-strings in the API are things that either comes from configuration files (such as /etc/fstab and /etc/crypttab), the kernel (e.g. sysfs paths) or udev rules (e.g. device symlinks). We could require UTF-8 here and just reject items that are not valid UTF-8 but there's really no point in that. Signed-off-by: David Zeuthen --- diff --git a/data/org.freedesktop.UDisks2.xml b/data/org.freedesktop.UDisks2.xml index 672be10..995105f 100644 --- a/data/org.freedesktop.UDisks2.xml +++ b/data/org.freedesktop.UDisks2.xml @@ -68,13 +68,13 @@ --> - + - + - + - + - + - + - + - + - + @@ -1155,7 +1155,7 @@ --> - + - + @@ -1278,8 +1278,8 @@ automatically updated. --> - - + +