From: ai26 AT sternwarte DOT uni-erlangen DOT de (Michael Lemke, Sternwarte Bamberg, Phone: +49-951-9522216) Subject: Re: calling GetCommandLine from EGCS 1.0.2 and other EGCS trouble 7 Apr 1998 13:13:53 -0700 Message-ID: <009C4052.CBC44569.27.cygnus.gnu-win32@sternwarte.uni-erlangen.de> To: GNU-WIN32%CYGNUS DOT COM AT bamp01 DOT sternwarte DOT uni-erlangen DOT de Cc: ai26 AT sternwarte DOT uni-erlangen DOT de X-Unparseable-Date: Tue, 31 Mar 1998 17:27:51 MET-1MET DST In a message of Fri, 27 Mar 1998 13:43:46 GMT Received on Tue, 31 Mar 1998 08:51:26 MET-1MET DST Christopher Faylor wrote to gnu-win32 AT cygnus DOT com >In article <199803231156 DOT MAA00276 AT bamp01 DOT sternwarte DOT uni-erlangen DOT de>, >Michael Lemke wrote: >>On the weekend, I installed b19 with the b19.1 dll, egcs 1.0.2 from Mumit's >>site and tried to recompile a simple program for b19 that worked fine on b18. >> >>Problem: It calls GetCommandLine (or what it's called -- no access to PC >>from here). In b18 GetCommandLine returns every arg with a space appended, >>e.g. >> >> foo arg1 arg2 arg3 >> >>returns in b18 (without the quotes) >> >> "arg1 " >> "arg2 " >> "arg3 " > >I don't understand what you're saying. I don't either after reading this again. >GetCommandLine returns a pointer >to the command line string. Are you perhaps saying that arg3 does not >have a trailing space? Exactly. >I believe that it might have in B18 but that is >no longer the case in B19. Yes, that's what I've found out now, too. I was relying on the space being there when I disected the arguments. Result: same code crashed in b19. So I changed the logic a little. In fact, everything is working just fine now. Michael -- Michael Lemke Sternwarte Bamberg, University of Erlangen-Nürnberg, Germany (lemke AT sternwarte DOT uni-erlangen DOT de or michael AT astro DOT as DOT utexas DOT edu) -- Michael Lemke Sternwarte Bamberg, University of Erlangen-Nürnberg, Germany (lemke AT sternwarte DOT uni-erlangen DOT de or michael AT astro DOT as DOT utexas DOT edu) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".