delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/24/08:54:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <01BEBE50.F7B61900@red>
From: Peter Meszaros <pmeszaros AT effice DOT hu>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Accented characters and cygwin
Date: Thu, 24 Jun 1999 14:50:53 +0200
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA06823

Hi All,

I have some problem with command line parameters containing accented characters in cygwin environment.

In the bash the codepage 1250 is set by "chcp.com 1250" command.

The following text contains accented characters but remains readable for you...

bash-2.02$ echo öüóoúéáuíÖÜÓOÚÉÁUÍ | xxd
0000000: f6fc f3f5 fae9 e1fb edd6 dcd3 d5da c9c1  ................
0000010: dbcd 0a                                  ...
bash-2.02$ ./xx öüóoúéáuíÖÜÓOÚÉÁUÍ | xxd
0000000: 3ef6 fcf3 f5fa e9e1 fbed d62d d3d5 2d2d  >..........-..--
0000010: 2b2d 3d3c 0a                             +-=<.

The source of the xx.c
--------------------------------------------------------------------------
#include <stdio.h>

main(int argc, char *argv[]) {
  printf(">%s<\n", argv[1]);
}
--------------------------------------------------------------------------
Compiled: gcc -g xx.c -o xx

The question is 'who' converts the characters?
The same things happen when I'm debugging and using 'set args'.
The conversion is different but done on both Hungarian and English WINNT and in an MSDOS window (no bash).

I didn't subscribe cygwin mailing list so if there is any advice sent it to mailto:pmeszaros AT effice DOT hu 

Thanks in advance

Peter


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019