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

Some characters can not be recongized by Python shell in docker #8360

Closed
skyline75489 opened this issue Nov 22, 2020 · 4 comments
Closed

Some characters can not be recongized by Python shell in docker #8360

skyline75489 opened this issue Nov 22, 2020 · 4 comments
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity.

Comments

@skyline75489
Copy link
Collaborator

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] 10.0.19041.572
Windows Terminal version (if applicable): master on 67dfbd21a6b37025ebc0cc435c2ddf791e32811a

Any other software?

Docker

Steps to reproduce

Using Python installed by apt install python3 in a ubuntu:18.04 docker image, and Microsoft Chinese IME, type 中文 in Chinese mode in Python shell.

Expected behavior

It works

Actual behavior

Something weird happens:

image

It feels like I'm using and alt + something.

And I'm using (a Chinese '), sometimes nothing happens. Somethings it feels like I'm typing a ( (and backwards):

image

It actually works in Python provided by anaconda:

image

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Nov 22, 2020
@skyline75489
Copy link
Collaborator Author

I found some similarity in #7589 , however I'm not sure it's the same thing. I found in convert.cpp, there's CharToKeyEvents which will convert 中文 into alt + 中文, which I do not fully understand.

@skyline75489
Copy link
Collaborator Author

OK, I've tried this with Guake on Linux. It behaves exactly the same. Now that I think of it, perhaps I should not expect dockered Python without UTF-8 support to naturally accept UTF-8 content.

@zadjii-msft
Copy link
Member

I've tried this with Guake on Linux. It behaves exactly the same

So, presumably that would mean this is an external bug, yea?

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 23, 2020
@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Nov 27, 2020
@ghost
Copy link

ghost commented Nov 27, 2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost ghost closed this as completed Dec 1, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity.
Projects
None yet
Development

No branches or pull requests

2 participants