Skip to content
Snippets Groups Projects
Commit 26dd6ce9 authored by Connor Atherton's avatar Connor Atherton Committed by GitHub
Browse files

Merge pull request #140 from johnnyshields/patch-1

Force UTF-8 encoding of history entry strings
parents eda376d0 37a1a2b9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6132,7 +6132,7 @@ module RbReadline
 
def alloc_history_entry(string, ts)
temp = Struct.new(:line,:data,:timestamp).new
temp.line = string ? string.delete(0.chr) : string
temp.line = string ? string.encode('UTF-8', invalid: :replace, undef: :replace, replace: '').delete(0.chr) : string
temp.data = nil
temp.timestamp = ts
 
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