diff options
author | Jose <jose@zeroc.com> | 2016-03-08 20:22:42 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-03-08 20:22:42 +0100 |
commit | e319f14fbdbed16b3d3a1b5851c0b892be70a0cf (patch) | |
tree | 21dd53ff1aa1bdc7546656737c6a82fdcf54a33e /cpp/src/Slice | |
parent | String literals Windows fixes (diff) | |
download | ice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.tar.bz2 ice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.tar.xz ice-e319f14fbdbed16b3d3a1b5851c0b892be70a0cf.zip |
String literals ruby fixes
Diffstat (limited to 'cpp/src/Slice')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 3 |
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) |