[Webkit-unassigned] [Bug 120134] New: [Tools] lldb_webkit.py helpers is incorrectly printing 8bit Strings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 21 13:27:55 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=120134

           Summary: [Tools] lldb_webkit.py helpers is incorrectly printing
                    8bit Strings
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: andersca at apple.com, benjamin at webkit.org,
                    akling at apple.com


Patch to follow.

# Before Change
(lldb) command script import /Volumes/Data/Code/webkit-open-source/Tools/lldb/lldb_webkit.py
(lldb) p mimeType
(const WTF::String) $9 = { length = 16, contents = '\u6d69\u6761\u2f65\u6e70\u3b67\u6162\u6573\u3436\u22a9\u22bd\u07ff\ud000\u211b\u22bd\u07ff\u8000' } {
  m_impl = {
    m_ptr = 0x00007ff22168bad0 { length = 16, is8bit = 0, contents = '\u6d69\u6761\u2f65\u6e70\u3b67\u6162\u6573\u3436\u22a9\u22bd\u07ff\ud000\u211b\u22bd\u07ff\u8000' }
  }
}

(lldb) p mimeType.is8Bit()
(bool) $10 = true

# After Change
(lldb) command script import /Volumes/Data/Code/webkit-open-source/Tools/lldb/lldb_webkit.py
(lldb) p mimeType
(const WTF::String) $11 = { length = 16, contents = 'image/png;base64' } {
  m_impl = {
    m_ptr = 0x00007ff22168bad0 { length = 16, is8bit = 1, contents = 'image/png;base64' }
  }
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list