← Back to team overview

touch-packages team mailing list archive

[Bug 1082460] Re: [regression] string not display when using UTF-8 characters

 

this works for me in 14.04 LTS

** Changed in: gdb (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1082460

Title:
  [regression] string not display when using UTF-8 characters

Status in “gdb” package in Ubuntu:
  Fix Released

Bug description:
  $ uname -a
  Linux black 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:27:31 UTC 2012 i686 i686 i686 GNU/Linux
  $ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.10
  Release:	12.10
  Codename:	quantal
  ---------
  exp.cpp:
  ---
  #include <iostream>
  using namespace std;
  const char *s  = "ф";//ф
  const char *s2 = "\ud45c";//표
  int main() {
  	cout << s << endl;
  	cout << s2 << endl;
  	return 0;
  }
  -------
  $ g++ -O0 -g -o "exp" exp.cpp
  $ ./exp
  ф
  표
  ---------------------

  gdb_7.5-0ubuntu2_i386.deb:
  -----
  $ gdb ./exp
  GNU gdb (GDB) 7.5-ubuntu
  Copyright (C) 2012 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "i686-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /home/sneg/work/edu_cpp/exp...done.
  (gdb) print s
  $1 = 0x80487f8 
  (gdb) print s2
  $2 = 0x80487fb 
  (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".

  ----------------------

  gdb_7.4-2012.04-0ubuntu2.1_i386.deb:
  -----
  $ gdb ./exp
  GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
  Copyright (C) 2012 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "i686-linux-gnu".
  For bug reporting instructions, please see:
  <http://bugs.launchpad.net/gdb-linaro/>...
  Reading symbols from /home/sneg/work/edu_cpp/exp...done.
  (gdb) print s
  $1 = 0x80487f8 "ф"
  (gdb) print s2
  $2 = 0x80487fb "표"
  (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".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1082460/+subscriptions