One little endian question

Jeff Harrison jeffaharrison at yahoo.com
Sun Mar 2 13:01:11 PST 2008


--- Bill Campbell <bill at celestial.com> wrote:

> On Sun, Mar 02, 2008, Jeff Harrison wrote:
> ...
> >Thanks.  That was very enlightening.  However, I
> don't
> >see how that helps me directly.  I need to know
> from
> >within a filepro application what the native byte
> >order is.  How can I tell that?
> 
> Given that this isn't something that changes on a
> system, how
> about putting it in a file someplace where it's
> accessible.
> 
> On a system with python, this is a one liner that
> will return the
> value for the system.  It returns ``little'' or
> ``big''.
> 
> python -c 'import sys; print sys.byteorder'
> 
> Bill
> --

Well, the problem is that I am designing something
that hopefully anyone with filepro 5.0 or greater will
be able to use - I can't depend on them having python,
and they may have either byte order, so I wouldn't
know what to put in that file.

As I mentioned, I could assume little endian, and let
the user override this if necessary - it would just be
a little confusing to the typical end user.  It is
certainly an option though.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The fastest and
easiest ways to generate filepro exports and imports.

 


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


More information about the Filepro-list mailing list