Skip to content

Commit

Permalink
Dylib: force UTF 8 when reading output
Browse files Browse the repository at this point in the history
Progress on:

Pass all `read` calls through utf-8 filter #230
  • Loading branch information
jmoody committed Oct 27, 2015
1 parent 3bd90bf commit dd10f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/run_loop/dylib_injector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def inject_dylib
stdin.puts 'EOF'
stdin.close

puts "#{stdout.read}"
puts "#{stdout.read.force_encoding("utf-8")}"

lldb_status = process_status
stderr_output = stderr.read.strip
stderr_output = stderr.read.force_encoding("utf-8").strip
end

pid = lldb_status.pid
Expand Down

0 comments on commit dd10f59

Please sign in to comment.