summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/language.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb
index 3e4c77f0..67114dac 100644
--- a/lib/rbot/language.rb
+++ b/lib/rbot/language.rb
@@ -27,6 +27,8 @@ class Bot
:traditional_chinese => 'zh_TW',
:simplified_chinese => 'zh_CN'
}
+ # On WIN32 it appears necessary to have ".UTF-8" explicitly for gettext to use UTF-8
+ Lang2Locale.each_value {|v| v.replace(v + '.UTF-8')}
# Return the shortest language for the current
# GetText locale