Package: binutils-mingw-w64-i686
Version: 2.24.51.20140617-1+3
Severity: normal

i686-w64-mingw32-windres running on s390x behaves differently when it
comes to strings.

s390x:
$ echo 'STRINGTABLE { 1, "String" }' | i686-w64-mingw32-windres

/* Type: stringtable

   Name: 1.  */
LANGUAGE 9, 1

STRINGTABLE MOVEABLE PURE DISCARDABLE
BEGIN
  1, L"\x5300\x7400\x7200\x6900\x6e00\x6700"
END

amd64:
$ echo 'STRINGTABLE { 1, "String" }' | i686-w64-mingw32-windres
/* COFF information not part of RC
   Time stamp: 1405365542

   Type: stringtable
   COFF information not part of RC
   Time stamp: 1405365542

   Name: 1
   COFF information not part of RC
   Time stamp: 1405365542.  */
LANGUAGE 9, 1

STRINGTABLE MOVEABLE PURE DISCARDABLE
BEGIN
  1, "String"
END

I would have expected the same output on the s390x and amd64 system.
It seems the endianness might be the cause of the different behavior.
The s390x architecture uses big endian.

I rebuild the binutils-mingw-w64-i686 debian package to make sure the issue
still occurs in the latest version.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: s390x

Kernel: Linux 3.14-1-s390x (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages binutils-mingw-w64-i686 depends on:
ii  binutils  2.24.51.20140617-1
ii  libc6     2.19-5
ii  zlib1g    1:1.2.8.dfsg-1


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to