[Rpm-maint] [rpm-software-management/rpm] Build fails on: "invalid utf-8 encoding in Classdict: TrueType Font data" (#952)

Florian Festi notifications at github.com
Tue Nov 26 13:03:13 UTC 2019


Yes, making invalid encoding an error is a new thing. RPM is using libmagic (from the `file` utility) to classify files. That's where this data comes from.
The reason to make this an error is that modern updaters use the data from the rpm header and display them as unicode strings (especially when using the Python bindings but also in general). Enforcing valid UTF-8 makes sure this always works properly.

There is 
```
# Should invalid utf8 encoding in package metadata terminate a build?
%_invalid_encoding_terminates_build 1
```
in the macros file. To switch this back to a warning set the macro to 0. But be better fix would be changing the font file.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/952#issuecomment-558618524
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191126/0b8c48f1/attachment.html>


More information about the Rpm-maint mailing list