Skip to content

Extra c0c Inserted At Beginning of File in Windows Docker Container #377

Closed as duplicate

Description

@grochoge

Running 1.1 in Windows docker container mcr.microsoft.com/windows/nanoserver:ltsc2022 through docker run --rm -it in Windows Terminal 1.22.11141.0

Using Docker 27.4.1 (the latest version that works properly in Windows :-/)

Launching edit with or without a file will insert "c0c" at the beginning of the document.

Example:
echo Hello world! > hello.txt
edit hello.txt
Ctrl+Q

Note this doesn't happen when run through cmd.exe

Image

Image

Activity

  1. elsaco commented on May 31, 2025

    @elsaco

    Without opening a new bug, using ssh to windows containers I noticed alike behavior.

    Setup is:

    • Windows Server 2025
    • OpenSSH_for_Windows_9.5p1
    • Docker version 28.1.1, build 4eba377
    • Server Core container ( mcr.microsoft.com/windows/servercore:ltsc2022)
    • Windows 10 client with Terminal ver. 1.22.11141.0
    • Edit 1.1

    From client ssh to server, start container + powershell, then run edit:

    Image

    Enter more lines:

    Image

    Delete lines 2 & 3:

    Image

    Ctrl+W and move focus to Don't Save:

    Image

  2. lhecker commented on Jun 4, 2025

    @lhecker
    Member

    I'm going to close this issue in favor of #243 so we can focus the discussion in a single place. Whether it's a docker container or SSH, the effect of the issue appears to be the same, so it's highly likely the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions