mkudffs 2.2 can create UDF filesystem which label contains Unicode code
points above U+FFFF which cannot be represented by UCS-2 encoding and
therefore UTF-16 needs to be used (via surrogate pairs). Unicode code
points above U+FFFF are encoded in UTF-8 by four bytes and some example is
emoji "😀".
This is test case to check that libblkid correctly supports UTF-16
decoding. It was created by mkudffs 2.2:
$ dd if=/dev/zero of=udf-hdd-mkudffs-2.2.img bs=1M count=10
$ mkudffs -l 😀 udf-hdd-mkudffs-2.2.img
--- /dev/null
+ID_FS_BLOCK_SIZE=512
+ID_FS_LABEL=😀
+ID_FS_LABEL_ENC=😀
+ID_FS_LOGICAL_VOLUME_ID=😀
+ID_FS_TYPE=udf
+ID_FS_USAGE=filesystem
+ID_FS_UUID=5e3d6e3fee58c271
+ID_FS_UUID_ENC=5e3d6e3fee58c271
+ID_FS_VERSION=2.01
+ID_FS_VOLUME_ID=😀
+ID_FS_VOLUME_SET_ID=5e3d6e3fee58c271LinuxUDF