https://bugs.kde.org/show_bug.cgi?id=367864

            Bug ID: 367864
           Summary: Specify Big or Little Endian for multi-byte structure
                    primitives
           Product: okteta
           Version: unspecified
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: Structures Tool
          Assignee: arichardson....@gmail.com
          Reporter: errone...@gmail.com
                CC: kosse...@kde.org

version 0.19.3 (not available in drop version list)

I'm trying to write a structure for ANSI X9.37 files which encode the total
length of each record as an unsigned 32 bit integer. Normally these are in
Motorola byte order or Big Endian. Also, TIFF files can either by II or MM for
Intel or Motorola byte order numerics.

Reproducible: Always

Steps to Reproduce:
1. Create a file with the following hex:
00 00 00 50
2. Create a structure with the following ods:
<?xml version="1.0" encoding="UTF-8"?>
<data><struct name="mm_example"><primitive type="uint32-be" /></struct></data>
3. Open the structure and the file.
4. Change the primitive type to "uint32".
5. Open the structure and the file.

Actual Results:  
On first opening with type="uint32-be", you get "uint32-be" does not name a
valid primitive type.
With type="uint32", you get the correct structure, but the value is 1342177280

Expected Results:  
With type="uint32", the value should be 80

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to