summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-08-25 13:26:03 +0300
committerSteve Kemp <steve@steve.org.uk>2015-08-25 13:26:03 +0300
commitd6f0fdd0ed0bbd277f19cf0dee92a47690a5e356 (patch)
treed2728cf285b6ae1603d80c9cf1853953119ca377 /bin
parent9e3ba7c4b468ec55a048c515c049336ff1084937 (diff)
Force default encoding to be UTF-8.
This shouldn't be required, but adding it is harmless and indicates our intent cleanly.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-dequeue6
-rwxr-xr-xbin/custodian-enqueue6
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index bc84adf..8896b14 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -8,6 +8,12 @@ require 'custodian/settings'
require 'custodian/queue'
require 'custodian/worker'
+
+if RUBY_VERSION =~ /1.9/
+ Encoding.default_external = Encoding::UTF_8
+ Encoding.default_internal = Encoding::UTF_8
+end
+
#
# Entry-point to our code.
#
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index f815757..1588638 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -8,6 +8,12 @@ require 'custodian/parser'
require 'custodian/queue'
require 'custodian/settings'
+
+if RUBY_VERSION =~ /1.9/
+ Encoding.default_external = Encoding::UTF_8
+ Encoding.default_internal = Encoding::UTF_8
+end
+
#
# Entry-point to our code.
#