[Bug 501593] Re: rpm build bad magic is caused by locale dependance

Jeff Johnson n3npq at mac.com
Thu Jun 19 16:24:20 CEST 2014


** Also affects: rpm
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are subscribed to PLD
Linux.
https://bugs.launchpad.net/bugs/501593

Title:
  rpm build bad magic is caused by locale dependance

Status in rpm package manager:
  New
Status in PLD Linux Distribution:
  New

Bug description:
  asterisk-sounds-core package building fails, as rpmbuild finds bad
  magic:

  error: magic_file(ms, ".../usr/share/asterisk/sounds/vm-onefor.sln16") failed: mode 37777700644 DOS executable (device driver)vasprintf failed (Invalid or incomplete multibyte or wide character)
  rpmbuild: rpmfc.c:1366: rpmfcClassify: Assertion `ftype != ((void *)0)' failed.

  however, file(1) seems NOT to fail if invoked in non-utf8 locale:

  $ LC_ALL=en_US.utf8 file vm-onefor.sln16
  vm-onefor.sln16: ERROR: DOS executable (device driver)vasprintf failed (Invalid or incomplete multibyte or wide character)

  $ LC_ALL=C file vm-onefor.sln16
  vm-onefor.sln16: DOS executable (device driver), name: \377\001\377\377\375\375\375\377\377\261

To manage notifications about this bug go to:
https://bugs.launchpad.net/rpm/+bug/501593/+subscriptions


More information about the pld-bugs mailing list