Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: src/ostreams.cc

Issue 458533002: Fix disassembly redirection from stdout into a file. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ostreams.cc
diff --git a/src/ostreams.cc b/src/ostreams.cc
index 0f5bec41d2b8b2a48685ddf7425ab6ceeb884df0..47c477f89289c8810499133488ebf75a18d6b019 100644
--- a/src/ostreams.cc
+++ b/src/ostreams.cc
@@ -165,7 +165,9 @@ OFStream& OFStream::flush() {
OStream& operator<<(OStream& os, const AsUC16& c) {
char buf[10];
- const char* format = (0x20 <= c.value && c.value <= 0x7F)
+ const char* format = (c.value == '\n') || (c.value == '\t') ||
+ (c.value == '\r') ||
Sven Panne 2014/08/25 13:07:20 This indentation looks funny, is "git cl format" h
Vyacheslav Egorov (Google) 2014/08/25 15:56:33 The funny indentation is actually the result of ap
+ (0x20 <= c.value && c.value <= 0x7F)
? "%c"
: (c.value <= 0xff) ? "\\x%02x" : "\\u%04x";
snprintf(buf, sizeof(buf), format, c.value);
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698