File gdb-14.2-fix-bug-1227348.patch of Package mingw32-gdb

diff -ur gdb-14.2.orig/gdb/python/lib/gdb/__init__.py gdb-14.2/gdb/python/lib/gdb/__init__.py
--- gdb-14.2.orig/gdb/python/lib/gdb/__init__.py	2024-03-03 06:55:00.000000000 +0100
+++ gdb-14.2/gdb/python/lib/gdb/__init__.py	2024-07-03 16:32:21.818656366 +0200
@@ -142,7 +142,7 @@
         globals["__file__"] = filepath
         set_file = True
     try:
-        with open(filepath, "rb") as file:
+        with open(filepath, "r") as file:
             # We pass globals also as locals to match what Python does
             # in PyRun_SimpleFile.
             compiled = compile(file.read(), filepath, "exec")
openSUSE Build Service is sponsored by