itzg / itzg/docker-minecraft-server

Unicode support in docker attach

Open
#2,423 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Shell
Stars
14.3k
Forks
1.9k
Avg merge
2d 10h
Merged PRs (30d)
31

Description

### Describe the problem

When attached to the server console using `docker attach` multiple backspace key presses are required to delete non-ascii character.

Example:
1. Enter `тест` into the console, then press backspace 8 times, then enter 'version' and press enter
2. Do exactly the same thing, but press backspace only 4 times, not 8
3. Enter `say` into the console, then enter `тест` and press backspace 4 times, then enter `test` and press enter
![image](https://github.com/itzg/docker-minecraft-server/assets/14233054/9cc9aa9e-f6c7-4d6c-9090-c77613a87e60)
![image](https://github.com/itzg/docker-minecraft-server/assets/14233054/a23b9238-f71b-4ac0-9957-887304f8a5f8)

Note the misaligned 'vers' happening because of the cursor moving back 8 times.
I am using Putty and Debian for the host, but everywhere else (including `docker exec bash`) cyrillic characters are handled correctly.

### Container definition

```
Paste run command or compose file here
```
tty and stdin_open are both set to `true`

### Container logs

```
Paste logs here
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Unicode backspace behavior with docker attach using tty and stdin_open set to true, comparing the reported Cyrillic cases. Determine whether the behavior belongs to this image or the Docker attach path; done means non-ASCII characters can be deleted with the expected number of backspaces without cursor misalignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.