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

Arkadiusz Miśkiewicz arekm at pld-linux.org
Wed Dec 30 11:13:49 CET 2009


This is bug in libmagic.

-- 
rpm build bad magic is caused by locale dependance
https://bugs.launchpad.net/bugs/501593
You received this bug notification because you are subscribed to PLD
Linux.

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




More information about the pld-bugs mailing list