diff options
author | Jose <jose@zeroc.com> | 2016-04-28 17:01:06 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-04-28 17:01:06 +0200 |
commit | b12ac29b8c62f112b8db92f5fa25f252f728d7cd (patch) | |
tree | 28c64e4232eae35f7d6a5007c6eb85faa0e0c520 /cpp | |
parent | Fixed issue with IE where accessing the stack from Exception.toString leads t... (diff) | |
download | ice-3.6.2.1-python.tar.bz2 ice-3.6.2.1-python.tar.xz ice-3.6.2.1-python.zip |
Add encoding comments to python generated codev3.6.2.1-python
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Slice/Python.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Slice/Python.cpp b/cpp/src/Slice/Python.cpp index 09a17a93b4a..4343456efb2 100644 --- a/cpp/src/Slice/Python.cpp +++ b/cpp/src/Slice/Python.cpp @@ -665,6 +665,10 @@ Slice::Python::compile(int argc, char* argv[]) } FileTracker::instance()->addFile(file); + // + // Python magic comment to set the file encoding, it must be first or second line + // + out << "# -*- coding: utf-8 -*-\n"; printHeader(out); printGeneratedHeader(out, base + ".ice", "#"); // |