summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-03-08 20:22:42 +0100
committerJose <jose@zeroc.com>2016-03-08 20:22:42 +0100
commite319f14fbdbed16b3d3a1b5851c0b892be70a0cf (patch)
tree21dd53ff1aa1bdc7546656737c6a82fdcf54a33e /cpp/src/Slice/RubyUtil.cpp
parentString literals Windows fixes (diff)
downloadice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.tar.bz2
ice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.tar.xz
ice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.zip
String literals ruby fixes
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index 796bdd5cd57..38bbeb5da19 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -1601,7 +1601,7 @@ Slice::Ruby::CodeVisitor::writeConstantValue(const TypePtr& type, const SyntaxTr
++i;
}
- _out << "\""; // Closing "
+ _out << "\".force_encoding(\"utf-8\")"; // Closing "
break;
}
@@ -1705,7 +1705,6 @@ Slice::Ruby::CodeVisitor::collectExceptionMembers(const ExceptionPtr& p, MemberI
void
Slice::Ruby::generate(const UnitPtr& un, bool all, bool checksum, const vector<string>& includePaths, Output& out)
{
- out <<"# encoding: utf-8";
out << nl << "require 'Ice'";
if(!all)