summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2014-03-07 09:32:51 +0100
committerMatthias H <apoc@sixserv.org>2015-01-11 08:59:28 +0100
commit6889fac4f7df6772e94bc7fc8319823197b68552 (patch)
treef49bdf5f4259e7fe4fcec5e7ca807f85ca5fea00
parent9785300d2b82d256ee9ac0eab50a4ddd7e387459 (diff)
set default encoding to UTF-8 for Ruby 1.9
-rwxr-xr-xbin/rbot2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/rbot b/bin/rbot
index 700fe08c..a8dd39c4 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -89,6 +89,8 @@ if File.directory? "#{defaultlib}/rbot"
end
begin
+ Encoding.default_internal = Encoding::UTF_8
+ Encoding.default_external = Encoding::UTF_8
require 'rbot/ircbot'
rescue LoadError => e
puts "Error: couldn't find the rbot/ircbot module (or one of its dependencies)\n"