Skip to contentSkip to conversation

tests/util/grub-fs-tester: Use CSMACINTOSH encoding instead of macroman

PATCH In review Glenn Washburn 2 participants 2 messages Dec 12, 2025 – Dec 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/util/grub-fs-tester: Use CSMACINTOSH encoding instead of macroman

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.

---
 tests/util/grub-fs-tester.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/util/grub-fs-tester.in +3 -1
index 7199322c61d5..1f80e8203ffa 100644
@@ -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,"
 		    ;;
Signature · 7 lines
2.34.1


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Glenn Washburn

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.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel