Fix handling of unsigned char strings (#373)

(cherry picked from commit a79c7b4e8f)
This commit is contained in:
Victor Zverovich authored and Jonathan Müller committed 2016-10-23 12:17:30 +02:00
1 parent 5047091ad8
commit f4a417f8fb
2 files changed
+4

No files matched your search

+2
View File
@@ -1343,6 +1343,8 @@ TEST(FormatterTest, FormatUCharString) {
EXPECT_EQ("test", format("{0:s}", str));
const unsigned char *const_str = str;
EXPECT_EQ("test", format("{0:s}", const_str));
unsigned char *ptr = str;
EXPECT_EQ("test", format("{0:s}", ptr));
}
TEST(FormatterTest, FormatPointer) {