2006-09-21 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2006 23:55:28 +0000 (23:55 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Sep 2006 23:55:28 +0000 (23:55 +0000)
        Reviewed by Tim H.

        * platform/TextEncoding.cpp:
        (WebCore::TextEncoding::backslashAsCurrencySymbol):
        Add comment clarifying why backslashAsCurrencySymbol is needed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16514 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/TextEncoding.cpp

index 1a43f1e..d7d1f32 100644 (file)
@@ -1,3 +1,11 @@
+2006-09-22  Anders Carlsson  <acarlsson@apple.com>
+
+        Reviewed by Tim H.
+
+        * platform/TextEncoding.cpp:
+        (WebCore::TextEncoding::backslashAsCurrencySymbol):
+        Add comment clarifying why backslashAsCurrencySymbol is needed.
+
 2006-09-21  Sean Gies  <seangies@apple.com>
 
         Reviewed by Adam Roben.
index ee921fe..d4897bb 100644 (file)
@@ -129,6 +129,8 @@ bool TextEncoding::isJapanese() const
 
 UChar TextEncoding::backslashAsCurrencySymbol() const
 {
+    // The text encodings below treat backslash as a currency symbol.
+    // See http://blogs.msdn.com/michkap/archive/2005/09/17/469941.aspx for more information.
     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 : '\\';