]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: Add UDF hdd image with emoji label created by mkudffs 2.2
authorPali Rohár <pali.rohar@gmail.com>
Sun, 9 Feb 2020 12:04:39 +0000 (13:04 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Sun, 9 Feb 2020 12:04:39 +0000 (13:04 +0100)
commitef111c0b3e7fbe6394e92485bfeddc66a2137345
tree7e70bb8c8598ed2e2e27dfdc7d0107c3451b96d2
parentf8b9b7439456c5ab8d95ad3c27f905ebd501685f
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
tests/expected/blkid/low-probe-udf-hdd-mkudffs-2.2 [new file with mode: 0644]
tests/ts/blkid/images-fs/udf-hdd-mkudffs-2.2.img.xz [new file with mode: 0644]