#3413 Fix wrong encoding in changelog entries
Merged 2 months ago by tkopecek. Opened 2 months ago by tkopecek.
tkopecek/koji issue3412  into  master

file modified
+4 -2
@@ -3541,9 +3541,11 @@ 

  def removeNonprintable(value):

      # expects raw-encoded string, not unicode

      if six.PY2:

-         return value.translate(None, NONPRINTABLE_CHARS)

+         value = value.translate(None, NONPRINTABLE_CHARS)

      else:

-         return value.translate(NONPRINTABLE_CHARS_TABLE)

+         value = value.translate(NONPRINTABLE_CHARS_TABLE)

+     # remove broken unicode chars (some changelogs, etc.)

+     return value.encode('utf-8', errors='replace').decode()

  

  

  def _fix_print(value):

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 months ago

rebased onto 93bdd16

2 months ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 months ago

Commit 9a1ee19 fixes this pull-request

Pull-Request has been merged by tkopecek

2 months ago
Metadata