Skip to content

Just strip out non-UTF characters from %changelog, not the whole %changelog #4394

Description

@praiskup

Describe the bug
The current behavior of Pulp appears to be that when a %changelog contains non-UTF-8 symbols, the entire %changelog section is stripped from the repository metadata. We should improve this by providing the otherwise valid %changelog and simply dropping the invalid non-UTF-8 characters.

To Reproduce
Place invalid symbols into the %changelog in your spec file and build it against an older target (newer targets have started stripping these symbols at the rpmbuild level).

Expected behavior
Even if the %changelog contains non-UTF-8 data, the valid portions should still be present in the RPM metadata, even if the section is technically incomplete.

Additional context
See also rpm-software-management/createrepo_c#327

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions