mirror of
https://github.com/google/googletest.git
synced 2024-12-26 17:41:03 +08:00
Workaround for GCC12 bug illustrated by https://godbolt.org/z/Pe5aE59xG
Fixes #4108 PiperOrigin-RevId: 499556061 Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
This commit is contained in:
parent
3a99ab6d83
commit
0296d7d370
@ -4888,7 +4888,8 @@ std::string StreamingListener::UrlEncode(const char* str) {
|
||||
case '=':
|
||||
case '&':
|
||||
case '\n':
|
||||
result.append("%" + String::FormatByte(static_cast<unsigned char>(ch)));
|
||||
result.push_back('%');
|
||||
result.append(String::FormatByte(static_cast<unsigned char>(ch)));
|
||||
break;
|
||||
default:
|
||||
result.push_back(ch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user