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

Unified Diff: third_party/WebKit/WebCore/platform/text/TextEncoding.cpp

Issue 440032: Disable the replacement of U+005C (backslash) with Yen sign in documents enco... (Closed) Base URL: svn://chrome-svn/chrome/branches/249/src/
Patch Set: Created 11 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/platform/text/TextEncoding.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/text/TextEncoding.cpp (revision 33160)
+++ third_party/WebKit/WebCore/platform/text/TextEncoding.cpp (working copy)
@@ -190,6 +190,11 @@
UChar TextEncoding::backslashAsCurrencySymbol() const
{
+#if PLATFORM(CHROMIUM)
+ // Chromium does not want this. The blog article cited is not
+ // a justification for replacing U+005C with U+00A5.
+ return '\\';
+#else
if (noExtendedTextEncodingNameUsed())
return '\\';
@@ -198,6 +203,7 @@
static const char* const a = atomicCanonicalTextEncodingName("Shift_JIS_X0213-2000");
static const char* const b = atomicCanonicalTextEncodingName("EUC-JP");
return (m_name == a || m_name == b) ? 0x00A5 : '\\';
+#endif
}
bool TextEncoding::isNonByteBasedEncoding() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698