]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-fs-tester: Use CSMACINTOSH encoding instead of macroman
authorGlenn Washburn <development@efficientek.com>
Fri, 12 Dec 2025 06:23:49 +0000 (00:23 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sun, 21 Dec 2025 15:41:46 +0000 (16:41 +0100)
From Debian 12 to 13, recode had a major overhaul and now does not support
the macroman encoding. Its unclear if this is a bug or intentional.
Regardless, use the CSMACINTOSH encoding instead as MacRoman and it are
aliases and CSMACINTOSH is supported on both Debian 12 and 13.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in

index 7199322c61d5cdddf9057a2bc4cd1595ba27b715..00ecec015bebec69b20dd210bdc70ffa6f350b3c 100644 (file)
@@ -743,7 +743,9 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
                    dd if=/dev/urandom of="${MOUNTDEVICE}" bs=1 seek=$((0x468)) conv=notrunc count=8
                    MOUNTFS="hfsplus";;
                x"hfs")
-                   "mkfs.hfs" -b $BLKSIZE -v "`echo $FSLABEL |recode utf8..macroman`" -h "${MOUNTDEVICE}"
+                   # CSMACINTOSH is an alias for MacRoman which is the
+                   # encoding used on HFS.
+                   "mkfs.hfs" -b $BLKSIZE -v "`echo $FSLABEL | recode utf8..CSMACINTOSH`" -h "${MOUNTDEVICE}"
                    dd if=/dev/urandom of="${MOUNTDEVICE}" bs=1 seek=$((0x474)) conv=notrunc count=8
                    MOUNTOPTS="iocharset=utf8,codepage=macroman,"
                    ;;