delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Wed, 18 Jul 2001 13:00:55 +0200 |
From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: Umlauts on commandline and in .bat files |
Message-ID: | <20010718130055.B7388@cygbert.vinschen.de> |
Mail-Followup-To: | cygwin <cygwin AT cygwin DOT com> |
References: | <15189 DOT 27038 DOT 830962 DOT 27804 AT jupiter DOT akutech-local DOT de> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.5i |
In-Reply-To: | <15189.27038.830962.27804@jupiter.akutech-local.de>; from ralf@akutech.de on Wed, Jul 18, 2001 at 12:49:02PM +0200 |
On Wed, Jul 18, 2001 at 12:49:02PM +0200, Ralf Fassel wrote: > Consider this program, printing the commandline arguments char by char > in octal: > > #include <stdio.h> > int > main(int argc, char *argv[]) > { > int i; > unsigned char *p; > for (i=1; i < argc; i++) { > p = argv[i]; > while (*p) { > printf("%03o ", *p++); > } > printf("\n"); > } > return 0; > } > > Now in a .bat file, I have a commandline containing german Umlauts: > $ cat ttt.bat > ./t.exe "ÄÖÜäöüß" > > Running this via `sh' yields the expected result: > $ sh ttt.bat > 304 326 334 344 366 374 337 > > But running via the `.bat => cmd' binding > $ ./ttt.bat > > h:\ralf\si++.4.0.C138>./t.exe "-Í_õ÷³¯" > 055 315 137 365 367 263 257 CMD is running with OEM character set, Cygwin processes with ANSI. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |