tests: Add UDF hdd image with emoji label created by mkudffs 2.2

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
This commit is contained in:
Pali Rohár 2020-02-09 13:04:39 +01:00
parent f8b9b74394
commit ef111c0b3e
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
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

Binary file not shown.