Michael and all, Based on Wikipedia [1], it appears the Apple File System (APFS) only supports UTF-8 filenames. The byte 0xE9 is illegal when used alone in UTF-8 (this character is 0xC3 0xA9 in UTF-8, as represented in the "utf" version of the filename on the next line). Therefore, this test is doomed to fail on APFS, and it should not even be attempted on macOS (it also fails on the legacy HFS+ file system, which uses UTF-16 encoding).
Cheers, Alexander [1] https://en.wikipedia.org/wiki/Apple_File_System [2] https://en.wikipedia.org/wiki/HFS_Plus On Wed, Dec 17, 2025 at 11:10 PM Michael Daniels <[email protected]> wrote: > > Hi, > > It looks like version 1.22.3 has a failing unit test on MacOS: > > ``` > % cc --version > clang version 21.1.2 > Target: arm64-apple-darwin > Thread model: posix > % make > cc -O2 -c -o buffer.o buffer.c > cc -O2 -c -o carg_parser.o carg_parser.c > cc -O2 -c -o global.o global.c > cc -O2 -c -o io.o io.c > cc -O2 -DPROGVERSION=\"1.22.3\" -c -o main.o main.c > cc -O2 -c -o main_loop.o main_loop.c > cc -O2 -c -o regex.o regex.c > cc -O2 -c -o signal.o signal.c > cc -O2 -o ed buffer.o carg_parser.o global.o io.o main.o main_loop.o regex.o > signal.o > cat ./red.in > red > chmod a+x red > % make check > testing ed-1.22.3... > caf\351_iso.txt: Illegal byte sequence > ? > 55cmp: 'caf'$'\351''_iso.txt': No such file or directory > 57 > tests failed. > Please, send a bug report to [email protected] > Include the (compressed) contents of '/Users/mdaniels5757/ed-1.22.3/tmp' in > the report. > make: *** [Makefile:83: check] Error 1 > % ls -lA tmp # This is why I'm ignoring that instruction above :) > total 0 > ``` > > This test failure does occur on both aarch64 and x86_64 MacOS. > > But ed itself still seems to work fine! > > Best, > Michael Daniels > https://github.com/mdaniels5757 >
