Bug 88823 - gdb immediately aborts in non-English locale
Summary: gdb immediately aborts in non-English locale
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gdb
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elena Zannoni
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-14 16:38 UTC by Alaeddin A. Aydiner
Modified: 2015-01-08 00:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-07-29 15:47:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Alaeddin A. Aydiner 2003-04-14 16:38:41 UTC
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.

> locale
LANG=tr_TR.UTF-8
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=


Version-Release number of selected component (if applicable):
gdb-5.3post-0.20021129.18

How reproducible:
Always

Steps to Reproduce:
1. Choose UTF-8 Turkish locale when logging into gnome.
2. Invoke gdb in a gnome-terminal.
    

Actual Results:  
> gdb
GDB doesn't know of any character set named `ISO-8859-1'.
No display number 0.
Disabling display 0 to avoid infinite recursion.


Expected Results:
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".
(gdb) quit


Additional info:

It seems the charset support of gdb is faulty.

Comment 1 Elena Zannoni 2003-04-22 15:39:56 UTC
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



Comment 2 Elena Zannoni 2003-07-29 15:47:24 UTC
Fixed now.


Note You need to log in before you can comment on or make changes to this bug.