--- /dev/null
+--- rpmlint-rpmlint-1.11/PostCheck.py~ 2021-01-17 18:05:55.000000000 +0100
++++ rpmlint-rpmlint-1.11/PostCheck.py 2021-01-17 18:12:55.108297139 +0100
+@@ -75,7 +75,7 @@
+ tmpfd, tmpname = tempfile.mkstemp(prefix='rpmlint.')
+ tmpfile = os.fdopen(tmpfd, 'wb')
+ try:
+- tmpfile.write(script)
++ tmpfile.write(script.encode('utf-8'))
+ tmpfile.close()
+ ret = Pkg.getstatusoutput((prog, commandline, tmpname))
+ finally: