You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strange characters at the beginning of file when creating or opening (when SSH'd from WSL to Windows 10) #414
I have downloaded edit.exe and have run it locally in a PowerShell v7 shell and also have it copied to a remote Windows 10 machine. The executable has been copied to the C:\Windows\System32 directory on both systems.
When I run edit.exe locally it seems to behave properly.
This is what it looks like when I run edit.exe using this command
edit.exe testing_edit.exe_123.txt
This is what it looks like on the remote Windows 10 system when I run edit.exe using this command (SSH'd into from an Ubuntu WSL shell). I tested SSH'ing into the system from a PowerShell v5 shell and launching edit and saw the same behavior. The remote Windows 10 machine is configured to use PowerShell v7 for it's default shell when you connect via SSH. PowerShell v 7 is PowerShell 7.5.1
edit testing1234.txt
Now I blank out that text and type this text and save the file
Now I reopen the file edit testing1234.txt and there are all kinds of strange characters inserted into the file. This happens each and every time the file is created or opened.
This has been reported in #243 and #377 also. All reported cases involve SSHing into remote server. I can replicate it using RDP to a Server 2025 running a Core 2022 Docker container with no SSH involved, just run docker container attach <container-name>:
Activity
robertstrom commentedon Jun 3, 2025
This is just typing
editon that remote Windows 10 systemrobertstrom commentedon Jun 3, 2025
Mouse does not work on the remote system. Not sure if it is supposed to or not (probably not).
zcobol commentedon Jun 4, 2025
This has been reported in #243 and #377 also. All reported cases involve SSHing into remote server. I can replicate it using RDP to a
Server 2025running aCore 2022Docker container with no SSH involved, just rundocker container attach <container-name>:zcobol commentedon Jun 4, 2025
Here is some debug output when launching
edit.exeresulting inc0con the first line:and when pressing
Ctrl+Wand move focus toDon't Save:lhecker commentedon Jun 4, 2025
I'm going to close both this issue and #377 in favor of #243 so we can focus the discussion in a single place.