From 1b3eb81f2e5fcd81ec2c6ddf736d51be76229840 Mon Sep 17 00:00:00 2001 From: Austin Henriksen Date: Tue, 15 Dec 2020 14:10:01 -0500 Subject: Removed u8 qualifiers from const strings in slice2cpp. This fixes #1179. It switches tests for this to compile with the utf-8 codepage too. --- cpp/src/slice2cpp/Gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') 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 << "\""; } -- cgit v1.2.3