Skip to content

Commit

Permalink
Log viewer: replace invalid UTF-8 characters (bsc#1110549)
Browse files Browse the repository at this point in the history
from the displayed log to avoid a crash

- 4.0.99
  • Loading branch information
lslezak committed Oct 9, 2018
1 parent 61e47a4 commit ec8c6c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions library/system/src/clients/view_anymsg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def main
file_content = SCR.Read(path(".target.string"), @filename)

if file_content
# replace invalid byte sequences with Unicode "replacement character"
file_content.scrub!("�")
# remove ANSI color escape sequences
file_content.remove_ansi_sequences
# remove remaining ASCII control characters (ASCII 0-31 and 127 (DEL))
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 9 08:25:42 UTC 2018 - lslezak@suse.cz

- Log viewer: replace invalid UTF-8 characters from the displayed
log to avoid a crash (bsc#1110549)
- 4.0.99

-------------------------------------------------------------------
Wed Oct 3 07:48:30 UTC 2018 - knut.anderssen@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 4.0.98
Version: 4.0.99
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0-only
Expand Down

0 comments on commit ec8c6c0

Please sign in to comment.