Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode in REPL #28

Closed
mikeknep opened this issue Jun 18, 2016 · 5 comments
Closed

Unicode in REPL #28

mikeknep opened this issue Jun 18, 2016 · 5 comments

Comments

@mikeknep
Copy link

mikeknep commented Jun 18, 2016

I'm unable to type or paste from clipboard Unicode characters like £ (via option 3 on OSX) or ≈ (option x) inside the Swift 3 repl running in Docker. I noticed that by default I can't type these characters into a bash shell inside this container at all unless adding the environment variable -e "LANG=C.UTF-8", which apparently is related to the base ubuntu image. However, even with that env var provided and working in bash, the unicode characters still won't appear in the Swift repl.

Some basic versions (can provide more detail as needed):

$ docker-machine version
docker-machine version 0.6.0, build e27fb87

$ docker -v
Docker version 1.10.3, build 20f81dd

Command to start bash / Swift repl:

$ docker run -it --rm --privileged=true -e "LANG=C.UTF-8" swiftdocker/swift [bash|swift]

I have no trouble typing these characters into a Swift 2.2 repl running locally, installed via Homebrew

@hamin
Copy link
Contributor

hamin commented Jun 22, 2016

@mikeknep not sure what the exact issue is, but I'll try to replicate it this weekend and take a look at it. If you figure it out feel free to update the issue or submit a PR :)

@hamin
Copy link
Contributor

hamin commented Sep 3, 2016

Closing this issue. These problems I think have long been solved. Happy to reopen if anyone else is still running into this issue.

@hamin hamin closed this as completed Sep 3, 2016
@mikeknep
Copy link
Author

I'm still having this issue exactly the same as initially described. It's hardly mission critical so I don't mind the issue being closed, but I figured I'd report my experience here in case someone else runs into this.

@hamin
Copy link
Contributor

hamin commented Sep 13, 2016

@mikeknep did you try --privileged=true?

@mikeknep
Copy link
Author

@hamin yep. Using the latest image (72a024daf2ad).

$ docker run -it --rm --privileged=true -e "LANG=C.UTF-8" swiftdocker/swift bash
root@...:/# £££
root@...:/# swift
1> (unable to type £)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants