X-Spam-Check-By: sourceware.org Date: Thu, 15 Feb 2007 10:47:18 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: winner wei cc: cygwin AT cygwin DOT com Subject: Re: is there any little-endian and big-endian issue with cygwin? In-Reply-To: <235031.47652.qm@web32401.mail.mud.yahoo.com> Message-ID: References: <235031 DOT 47652 DOT qm AT web32401 DOT mail DOT mud DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, . Thanks. More below. On Thu, 15 Feb 2007, winner wei wrote: > My code works fine in Cygwin by command line, but when I run it through > a Java GUI launched from DOS the result is incorrect with all the data > which are not zero. The java Gui does nothing more than launching the > executables and provide a parameter file (I used the exactly same > parameter file by the command line run). So I guess if there is any > differences in the storage arrangement btw Cygwin and DOS/Windows, or > any other reason? Endianness is usually a property of the architecture[*]. Since both Cygwin and Windows run on the same architecture, there are no endianness issues. However, Cygwin and Windows do have different formats for filesystem paths, and may also have different concepts of line endings. You need to make sure that the path your Cygwin executable gets is in the format that Cygwin understands. If that is not your problem, you'll need to provide more details, and perhaps a . Igor [*] Yes, I know, except for special cases like network data layout, but we're not considering those here. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- 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/