diff options
author | Austin Henriksen <austin@zeroc.com> | 2020-12-15 14:10:01 -0500 |
---|---|---|
committer | Austin Henriksen <austin@zeroc.com> | 2020-12-15 15:47:33 -0500 |
commit | 1b3eb81f2e5fcd81ec2c6ddf736d51be76229840 (patch) | |
tree | 53e33ad7b8fea529b27427e357449ffb9ca121c2 /cpp/src | |
parent | Add ability to set python interpreter used to test (diff) | |
download | ice-1b3eb81f2e5fcd81ec2c6ddf736d51be76229840.tar.bz2 ice-1b3eb81f2e5fcd81ec2c6ddf736d51be76229840.tar.xz ice-1b3eb81f2e5fcd81ec2c6ddf736d51be76229840.zip |
Removed u8 qualifiers from const strings in slice2cpp.
This fixes #1179.
It switches tests for this to compile with the utf-8 codepage too.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 7790ec60bf2..94ced867a5c 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -108,7 +108,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt bool wide = (typeContext & TypeContextUseWstring) || findMetaData(metaData) == "wstring"; if(wide || cpp11) { - out << (wide ? "L\"" : "u8\""); + out << (wide ? "L\"" : "\""); out << toStringLiteral(value, "\a\b\f\n\r\t\v", "?", UCN, cpp11 ? 0 : 0x9F + 1); out << "\""; } |