diff options
author | Jose <jose@zeroc.com> | 2016-03-10 09:33:14 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-03-10 09:33:14 +0100 |
commit | 709f8a26f7ac03bed5a4d1a0b9de6c4e9d14f806 (patch) | |
tree | 0665aa227fce4c4c369619fb2ea1d9f718979655 /cpp/src/Slice/Ruby.cpp | |
parent | Windows PHP build fixes (diff) | |
download | ice-709f8a26f7ac03bed5a4d1a0b9de6c4e9d14f806.tar.bz2 ice-709f8a26f7ac03bed5a4d1a0b9de6c4e9d14f806.tar.xz ice-709f8a26f7ac03bed5a4d1a0b9de6c4e9d14f806.zip |
String literals fixes
- Fixed escape sequences in C++ wide strings
- Fixed objetive-c escape sequences
- Update ruby to use magic comments to set the file encoding
Diffstat (limited to 'cpp/src/Slice/Ruby.cpp')
-rw-r--r-- | cpp/src/Slice/Ruby.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Slice/Ruby.cpp b/cpp/src/Slice/Ruby.cpp index 62daa345cbf..209711a679d 100644 --- a/cpp/src/Slice/Ruby.cpp +++ b/cpp/src/Slice/Ruby.cpp @@ -301,7 +301,10 @@ Slice::Ruby::compile(int argc, char* argv[]) throw FileException(__FILE__, __LINE__, os.str()); } FileTracker::instance()->addFile(file); - + // + // Ruby magic comment to set the file encoding, it must be first or second line + // + out << "# encoding: utf-8\n"; printHeader(out); printGeneratedHeader(out, base + ".ice", "#"); |