I forgot that Mac OS provides "/usr/lib/libreadline.dylib" as a symlink to libedit, so installing readline via Homebrew doesn't (and shouldn't) replace it.
To point Racket at your Homebrew-installred readline, go to the "lib" directory adjacent to the "bin" directory that contains "racket", and run ln -s /usr/local/opt/readline/lib/libreadline.dylib That way, Racket will find the "libreadline.dylib" from Homebrew instead of the not-libreadline from the OS, since Racket looks in its own "lib" first. At Fri, 14 Sep 2018 06:43:25 -0700 (PDT), Jon Kleiser wrote: > Thanks for the info. However, there must be one detail I'm missing. > I have done "brew install readline", and "raco pkg install readline-gpl", > and when I now do "raco pkg show", I get this: > > Installation-wide: > Package Checksum Source > main-distribution 34484fc4a83e3441... catalog...tribution > racket-lib 570306a2bfa6057f... catalog racket-lib > [198 auto-installed packages not shown] > User-specific for installation "7.0": > Package Checksum Source > readline-gpl 2990d5f3a3d43c2d2f... catalog...eadline-gpl > > However, when I do "racket", I still get > "\U+FFC3\U+FFA6\U+FFC3\U+FFB8\U+FFC3\U+FFA5" when typing "æøå" at the > prompt. Is there something I should (require ...)? > > fredag 14. september 2018 13.54.07 UTC+2 skrev Matthew Flatt følgende: > > > > This is a problem with libedit, which Racket uses by default, and the > > version of libedit that comes with Mac OS is not built with Unicode > > support. > > > > If you insteall readline (e.g., through Homebrew), then installing the > > "readline-gpl" Racket package will use readline and support Unicode > > input. > > > > At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote: > > > If I enter this in the REPL in my macOS Terminal > > > (string->list "hei") > > > then I get '(#\h #\e #\i), as expected, but if I replace "hei" with > > "høy", > > > the input line suddenly looks like this > > > (string->list "h\U+FFC3\U+FFB8y") > > > and what I get back is '(#\h #\y). The letter "ø" has been stripped > > away. > > > The same happens with letters "æ" and "ø", typical Norwegian characters. > > > Is there something I can do to make the macOS Terminal REPL handle these > > > Norwegian characters better? > > > In the DrRacket REPL this strange translation and stripping does not > > happen. > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups > > > "Racket Users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an > > > email to racket-users...@googlegroups.com <javascript:>. > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.