cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.94k stars 499 forks source link

Source file decoding errors #471

Open malevolententity opened 1 year ago

malevolententity commented 1 year ago

Fixes proposed in https://github.com/cs01/gdbgui/issues/347#issuecomment-678799237was not added to the master branch

with open(path, "r") as f:

to

with open(path, "r", errors="replace") as f:

In gdbgui/server/http_routes.py

Have verified that this fix fixes an issue where source file contents can't be displayed if contents of file have special UTF-8 characters