Red Hat Bugzilla – Bug 88823
gdb immediately aborts in non-English locale
Last modified: 2015-01-07 19:04:43 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
Description of problem:
gdb aborts abruptly in the following locale. It seems gdb may have this problem
in other locales too. gdb works fine in the default C or English locale.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Choose UTF-8 Turkish locale when logging into gnome.
2. Invoke gdb in a gnome-terminal.
GDB doesn't know of any character set named `ISO-8859-1'.
No display number 0.
Disabling display 0 to avoid infinite recursion.
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
It seems the charset support of gdb is faulty.
The problem is because gdb is trying to do some upper-to-lower case conversions
and comparison between "ISO-8859-1" and "iso-8859-1" and the lowercase of 'I' in
Turkish is not 'i'. So the comparison fails.
As a workaround, you can try to start gdb doing this:
% LC_ALL=en_US gdb