rpm build bad magic is caused by locale dependance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned | ||
PLD Linux |
New
|
Undecided
|
Unassigned |
Bug Description
asterisk-
error: magic_file(ms, ".../usr/
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\
This is bug in libmagic.