So, I'm using the Swift REPL from Windows with Docker WSL2 via the docker image
swiftlang/swift:nightly-5.5. I run Docker with these options:
--security-opt seccomp=unconfined -it --rm --name swift -e 'LC_ALL=C.UTF-8' /bin/bash
This is run from Windows 10 1903, Windows Terminal with local code page 65001, although the code page doesn't make a difference.
The environment variable setting in the docker run line means that e.g. danish characters (æ, ø, å) work correctly in the launched bash, i.e. I can cat them into files and such. They do not, however, work in the Swift REPL, started vy typing
swift (or if launched directly by Docker with the command changed to swift).
Instead these characters are either completely ignored and lead to no input whatsoever, or they lead to strange things being out such as "\U+00F8", the character code for one of those letters. It's not a problem to read files containing UTF-8, using
<filename, or to print such characters correctly. It's just not possible to input them. The same thing happens if I launch LLDB, so I don't know how Swift related it is (I don't know how custom the LLDB shipped in the image is).
Is this a know issue? Is it related to Linux, or perhaps Docker, perhaps when run from Windows? Thanks in advance