From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21940: 24.5; GDB interface gets confused by non-ASCII Date: Tue, 17 Nov 2015 18:47:07 +0200 Message-ID: <837flgbmk4.fsf@gnu.org> References: <84lh9wmyqn.fsf@mimmi.uddeborg> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1447778910 32288 80.91.229.3 (17 Nov 2015 16:48:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 16:48:30 +0000 (UTC) Cc: 21940@debbugs.gnu.org To: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 17:48:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyjQR-0003LX-7y for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 17:48:11 +0100 Original-Received: from localhost ([::1]:59439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyjQQ-0008W0-QW for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 11:48:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyjQL-0008Vi-L3 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyjQI-0007Fw-Eu for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyjQI-0007Fr-CO for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZyjQI-0003qc-9V for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2015 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21940 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21940-submit@debbugs.gnu.org id=B21940.144777885114746 (code B ref 21940); Tue, 17 Nov 2015 16:48:02 +0000 Original-Received: (at 21940) by debbugs.gnu.org; 17 Nov 2015 16:47:31 +0000 Original-Received: from localhost ([127.0.0.1]:41937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyjPm-0003pm-C3 for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:47:30 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:55421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyjPR-0003p1-Va for 21940@debbugs.gnu.org; Tue, 17 Nov 2015 11:47:29 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NXY00100WYLEA00@mtaout25.012.net.il> for 21940@debbugs.gnu.org; Tue, 17 Nov 2015 18:44:36 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXY0021QX6B5V00@mtaout25.012.net.il>; Tue, 17 Nov 2015 18:44:36 +0200 (IST) In-reply-to: <84lh9wmyqn.fsf@mimmi.uddeborg> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108827 Archived-At: > From: Göran Uddeborg > Date: Tue, 17 Nov 2015 16:28:32 +0100 > > > It seems something has broken in the interface between Gdb and Emacs. > I'm not sure which side is to blame, but I'll start with a report here. > Let me know if I should report to gdb instead. > > With the most recent versions of Emacs and Gdb on Fedora, the debugging > mode gets confused if the path to the program being debugged contains a > non-ASCII letter. To reproduce it do like this: > > 1. cd /tmp > 2. mkdir göran > 3. cd göran > 4. cat > c.c << EOF > int main() > { > return 0; > } > EOF > 5. cc -g c.c -o c > 6. emacs -Q > 7. M-x gdb > 8. (in *gud-c* buffer) b main > 9. r > > The first strange thing happens at step 8. After having printed the > message "Breakpoint 1 at 0x4004fa: file c.c, line 3" and a "(gdb)" > prompt, there is also a listing of the c.c file inserted in the > "*gud-c*" buffer. > > After running the program in step 9, the line where the program stops > is listed in the "*gud-c*" buffer, and then the file c.c is listed > AGAIN. > > I also get a question in the minibuffer: File /tmp/göran/"/tmp/g\303\266ran/c.c" is read-only on disk. Make buffer read-only, too? (y or n) > > Note that "/tmp/göran" is repeated here, quoted with octal codes once. > The quotation signs also look strangely placed. > > If I replace the "ö" in the name of the directory created in step 2, the > debugger behaves as I'm used to. When it reaches the breakpoint in step > 9, the file c.c is popped up in a separate window, with a little marker > at line 3 where the process has stopped. Thanks for reporting this. This is bug #21572 (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21572), which is already fixed in the development sources.