Comment 2 for bug 1785821

Revision history for this message
Unit 193 (unit193) wrote :

Howdy,

This is fixable with a very simple patch, though I'm not sure what the downside of it is:

--- a/usr/bin/pastebinit/pastebinit 2016-03-01 00:52:32.000000000 -0500
+++ b/usr/bin/pastebinit/pastebinit 2019-07-06 19:39:43.280603245 -0400
@@ -349,7 +348,7 @@
             content = sys.stdin.read()
         else:
             try:
- with open(filename, "rb") as fd:
+ with open(filename, "r") as fd:
                     content = fd.read()
             except KeyboardInterrupt:
                 print(_("KeyboardInterrupt caught."), file=sys.stderr)