<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; color: rgb(0, 0, 0); ">On Aug 8, 2012, at 4:41 AM, Nino Kettlitz <<a href="mailto:nino.kettlitz@googlemail.com">nino.kettlitz@googlemail.com</a>> wrote:</div></div></span></div></span></div></span></span></div><div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Enrico,<br>
      <br>
      I tested the script and there are two points:<br>
      <br>
      1. "_string_summary_size" is undefined<br>
      <br></div></div></blockquote><div><br></div><div>True. My mistake in copying/pasting. Feel free to define it to whatever value you fancy!</div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">
      2. I do not know if "return s.encode('utf-8')" is tcorrect. What
      encoding is the lldb stdout?<br></div></div></blockquote><div><br></div><div><div>We need to use UTF-8. So that is definitely The Right Thing (TM).</div></div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">
          I registered the wstring_SummaryProvider for std::string also
      and get wrong results.<br>
      <br></div></div></blockquote><div><br></div><div>Why do you want/need to do that?</div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">
          std::string aString = "HÄLLÖ WÖRLD!!!";    <br>
          std::wstring aString32 = L"HÄLLÖ WÖRLD!!!";<br>
          unsigned short pRawString[] = {'H', 0xc4 , 'L', 'L', 0xD6,
      'W', 0xD6, 'R', 'L', 'D', '!', '!', '!', 0 };    <br>
          std::basic_string<unsigned short> aString16 =
      pRawString;<br>
      <br>
          (lldb) frame variable aString<br>
          (std::string) aString = "HÄLLÖ WÖRLD!!!"<br>
          (lldb) frame variable aString16<br>
          (std::basic_string<unsigned short,
      std::char_traits<unsigned short>, std::allocator<unsigned
      short> >) aString16 = "HÄLLÖWÖRLD!!!"<br>
          (lldb) frame variable aString32<br>
          (std::wstring) aString32 = "HÄLLÖ WÖRLD!!!"<br>
      <br>
          Maybe thats an stl or compiler issue. When registering the
      wstring_SummaryProvider for wstring and 16bit strings only
      everything is fine.<br>
      <br></div></div></blockquote><div><br></div><div>Which is what I expect :-)</div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">
      Cheers,<br>
      <br>
      Nino</div></div></blockquote><br></div><div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="border-collapse: separate; border-spacing: 0px; "><i>Enrico Granata</i></div><div style="border-collapse: separate; border-spacing: 0px; ">✉ egranata@<font class="Apple-style-span" color="#ff230e"></font>.com</div><div>✆ (408) 972-7683</div></div></div></span></div></span></span></div><br><div></div></div></body></html>