This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Accented characters and cygwin


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@effice.hu 

Thanks in advance

Peter


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]