Skip to content
  • oliver's avatar
    2007-03-08 Oliver Hunt <oliver@apple.com> · 9a648fe1
    oliver authored
            Reviewed by Adam.
    WebCore:
            To match old TEC behaviour when using ICU we need to use 
            a few manual fallback encodings for the GBK/EUC-CN charsets
    
            <rdar://problem/4708689> -- REGRESSION: Some symbols with 2-byte display as garbage in Hotmail.
    
            * platform/TextCodecICU.cpp:
            (WebCore::TextCodecICU::TextCodecICU):
            (WebCore::TextCodecICU::createICUConverter):
            (WebCore::gbkEscapes):
            (WebCore::gbkCallbackEscape):
            (WebCore::gbkCallbackSubstitute):
            (WebCore::TextCodecICU::encode):
            * platform/TextCodecICU.h:
            (WebCore::TextCodecICU::needsGBKFallbacks):
            (WebCore::TextCodecICU::setNeedsGBKFallbacks):
            
    LayoutTests:
            Adding GBK character encoding tests
    
            * fast/encoding/char-encoding-expected.txt:
            * fast/encoding/char-encoding.html:
            
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9a648fe1