1.7.1-1: In cmd.exe shell, how to pass multi-byte characters to bash?

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Mar 12 16:27:00 GMT 2010


On Mar 13 00:07, bootleq wrote:
> When typing command in Windows XP cmd.exe shell, with multi-byte
> characters, for example:
> bash -c 'echo ???'
> result in:
> bash: $'echo \357\274\241': command not found
> expected result:
> ???
> 
> This would be problematic when writing Windows scripts to invoke bash commands.

Simplest solution:  Write bash scripts instead.

Other than that, check the latest developer snapshot from
http://cygwin.com/snapshots/.  It contains a patch which might fix your
problem.  And either way, make sure the environment locale settings are
matching your Win32 environment.  See the User's Guide.


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list