GHCi 9.2.1 Unicode input broken on macOS Arm64
Summary
Entering non-ASCII symbols into the GHCi readline environment on arm64 doesn't work (x86_64 is unaffected).
Steps to reproduce
- Enter the GHCi interpreter
- Type or paste
print "¬"
- Observe that the Unicode replacement character has been inserted, but press return anyway
- Observe the output "\65533\65533"
- Note that
putStrLn "\172"
prints the expected character
Expected behavior
Rather than "\65533\65533" (two instances of the Unicode replacement character), the output should be "\172" as it is on x86_64 builds. The symbol should behave as it does in the terminal outside of GHCi, being printed as itself rather than as the replacement character.
Environment
- GHC version used: 9.2.1
Optional:
- Operating System: macOS 11.6
- System Architecture: arm64