How to encode Non-English directories and filenames

Corinna Vinschen vinschen at redhat.com
Fri Feb 20 20:31:06 EST 2009


On Feb 19 12:12, Pulkit Singhal wrote:
> Hello All,
> 
> I have a custom client which successfully connects to the SSH server
> both on cygwin/OpenSSH-server running on windows and to standard SSH
> servers runnign on Linux.
> 
> If I send a command like the following in bytes:
> ====
> mkdir <Shift_JIS_characters>
> ====
> after having encoded the whole command in bytes with Shift_JIS, to a
> linux SSH server ... it works.
> 
> BUT if I send a similar command to a cygwin/SSH-server on windows, it fails.
> 
> It seems like the OpenSSH implementation does not honor the default
> system encoding specified by the windows operating system for
> non-Unicode programs.

You can try running the sshd service with the environment variable
CYGWIN set to "codepage:oem" plus setting LC_CTYPE to "C-JIS".  Native
language support in Cygwin exists only marginally, especially since the
underlying newlib C library is lacking in this area quite a bit.  I'm
working  on that, but it will take time.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


More information about the openssh-unix-dev mailing list