Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: exec problem is JDK 1.7.0_21 Date: Thu, 25 Apr 2013 11:49:53 +0300 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de 6FJmzgn9cs6bXZL6zuXmxQafSDuIUA/m+I2An5tqlJ5ePacQATQqNVDx3D Cancel-Lock: sha1:At89LM7Grt1xsoWgrhSkFE+6osU= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:23641 On 04/25/2013 12:24 AM, Steven Simpson wrote: > On 24/04/13 11:11, Sven Köhler wrote: >> I will try to check tonight on Windows 7 using mingw64. Are you sure, >> you haven't mixed char and wchar strings? > > I don't think so. If I had, I wouldn't expect anything coherent. Let's forget about CommandLineToArgvW. It's broken (doesn't implement what is documented) and it doesn't distinguish between inner and outer quotes. The proper documentation about how microsoft (and apperently mingw32 and mingw64) do the command line tokenization is available here: http://msdn.microsoft.com/en-us/library/a1y7w461.aspx Regards, Sven