title: Printing utf8 symbols in gdbtui
body: <p>I have a problem with printing utf8 symbols in gdb -tui mode.</p>
  
  <pre><code>(gdb) show charset
  The host character set is "auto; currently UTF-8".
  The target character set is "auto; currently UTF-8".
  The target wide character set is "auto; currently UTF-32".
  </code></pre>
  
  <p>code: tmp.cpp, utf8</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int main() {
      char *s = "asd";
      char *w = "тест";
      std::cout &lt;&lt; s &lt;&lt; std::endl;
      std::cout &lt;&lt; w &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  
  <p>g++ cmds:</p>
  
  <pre><code>g++ -O0 -g tmp.cpp
  </code></pre>
  
  <p>gdb cmds:</p>
  
  <pre><code>b 6
  r
  info locals
  </code></pre>
  
  <p>gdb stdout:</p>
  
  <pre><code>s = 0x80487b0 "asd"
  w = 0x80487b4 "тест"
  </code></pre>
  
  <p>gdbtui stdout:</p>
  
  <pre><code>s = 0x80487b0 "asd"
  w = 0x80487b4 "Ð¼Ð°Ð¼Ð°"
  </code></pre>
  
  <p>Tell me please, what should I do, to see the correct output?</p>