Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: comp.programming Subject: Re: little-endian Date: Sat, 17 Nov 2012 13:56:05 +0100 Organization: Informatimago Lines: 31 Message-ID: <87ehjspevu.fsf@informatimago.com> References: <2f491c75-8fbc-4dca-9abe-f11e784454a2@googlegroups.com> <87r4ntp4b1.fsf@informatimago.com> <87mwygpolg.fsf@informatimago.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net XlXQz4JrDN5CwPgXqqH/agrNbDfKxPjKdfU/bYUUf6VvsnTrMTsaW9l5kixJIYVzcO Cancel-Lock: sha1:NWVlNTVmNjhjNzExYzY3ZmI4ZDhlMDk3YzNkNGY1MmQ2MzBhZmZlOQ== sha1:VslQKkbn2u5yrAkcq14hVVcVRrY= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Xref: csiph.com comp.programming:2493 "BartC" writes: > "Pascal J. Bourguignon" wrote in message > news:87mwygpolg.fsf@informatimago.com... >> BGB writes: >> >>> some of my file-formats end up little-endian, and others big-endian. >> >> That's unfortunate. The internet is in general specified to use >> big-endian. For files you'd be well advised to apply the same rule. > > Or maybe it shouldn't be anything to do with the internet. > > Does it also specify whether RGB triples should have R first, or B > first? It should be a concern of the file format. Definitely. But it's not the bytesex anymore, it's the colorsex. :-) > Or files can be sent (highly inefficiently) in true text format (not > binary disguised as text), which is invariably big-endian. Then the > only issue is which character sequence represents end-of-line... Just choose one of the end-of-line characters in the unicode character set :-) -- __Pascal Bourguignon__ http://www.informatimago.com