This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: Serious ;-): How does Windows pass non-ascii filename to executable?
- From: Shaddy Baddah <Shaddy_Baddah at hotmail dot com>
- To: cygwin-talk at cygwin dot com
- Date: Tue, 01 Nov 2005 12:40:05 +0800
- Subject: Re: Serious ;-): How does Windows pass non-ascii filename to executable?
- References: <4366F01C.30907@hotmail.com>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
- Reply-to: Shaddy_Baddah at hotmail dot com, cygwin-talk at cygwin dot com
Hi,
Shaddy Baddah wrote:
..
> executables? Here is the scenario. I have attached a quite simplistic C
> test application.
Guess what I done? Sorry about that. Please find it attached here.
Regards,
Shaddy
#include <stdio.h>
int
main(int argc, char* argv[])
{
int idx;
char dummy[1024];
printf("argc == %d\n", argc);
for (idx = 0; idx < argc; idx++)
{
printf("argv[%d] == \"%s\"\n", idx, argv[idx]);
printf("strlen(argv[%d]) == \"%d\"\n", idx, strlen(argv[idx]));
}
fflush(stdout);
fgets(dummy, sizeof(dummy), stdin);
return 0;
}