www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_33,J_CHICKENPOX_43,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4A1EAAED.1060702@cygwin.com> |
Date: | Thu, 28 May 2009 11:17:01 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.7.0-48: [BUG] Passing characters above 128 from bash command line |
References: | <200905281541 DOT 33404 DOT michael DOT renner AT gmx DOT de> <20090528145106 DOT GA23970 AT ednor DOT casa DOT cgf DOT cx> <4A1EAA75 DOT 7030203 AT sidefx DOT com> |
In-Reply-To: | <4A1EAA75.7030203@sidefx.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Edward Lam wrote: > Hi Cygwin 1.7 developers, > > I think I've encountered bug in cygwin 1.7.0-48 on WinXP 32-bit. It > seems that passing a character on the command line (from either ash.exe > or bash.exe) that is greater than 127 to a native win32 process results > in arguments being truncated. > > Hopefully you can reproduce and fix. Steps to reproduce outlined below. > > $ cat bug.c > #include <stdio.h> > > int main(int argc, char *argv[]) > { > int i; > for (i = 0; i < argc; i++) > printf("%d: %s\n", i, argv[i]); > return 0; > } > > $ xxd copyright.txt > 0000000: a9 . > > $ $TOOLROOT/bin/cl -I$TOOLROOT/include bug.c /link > /libpath:$TOOLROOT/lib /libpath:$TOOLROOT/PlatformSDK/lib > > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 > Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. > > bug.c > Microsoft (R) Incremental Linker Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > > /out:bug.exe > /libpath:e:/msdev7/vc7/lib > /libpath:e:/msdev7/vc7/PlatformSDK/lib > bug.obj > > $ ./bug "before `cat copyright.txt` after" > 0: E:\cygwin1.7\tmp\bug.exe > 1: before > > Notice that for argument 1, we never see the contents of copyright.txt > and the text after it, "after" is never passed to the win32 native > application. This sounds allot like this report to me: <http://cygwin.com/ml/cygwin/2009-05/msg00611.html> No? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |