Skip to content
Snippets Groups Projects
Commit 0379db1b authored by Johnny Shields's avatar Johnny Shields Committed by GitHub
Browse files

Force UTF-8 encoding of history entry strings

Fixes 139
parent fd882edc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6131,6 +6131,7 @@ module RbReadline
end
 
def alloc_history_entry(string, ts)
string = string.encode('UTF-8', invalid: :replace, undef: :replace, replace: '')
temp = Struct.new(:line,:data,:timestamp).new
temp.line = string ? string.delete(0.chr) : string
temp.data = nil
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment