Skip to content

Commit e6ba31f

Browse files
committed
Switch from an ignore to replace policy for Unicode errors
At least in this way it is possible to notice that something is wrong.
1 parent 4eccd3e commit e6ba31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ class Source(Dashboard.Module):
11851185
if style_changed or file_name != self.file_name or ts and ts > self.ts:
11861186
try:
11871187
# reload the source file if changed
1188-
with io.open(file_name, errors='ignore') as source_file:
1188+
with io.open(file_name, errors='replace') as source_file:
11891189
highlighter = Beautifier(file_name, self.tab_size)
11901190
self.highlighted = highlighter.active
11911191
source = highlighter.process(source_file.read())

0 commit comments

Comments
 (0)