From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Augusto Fraga Newsgroups: gmane.emacs.bugs Subject: bug#21572: Fwd: bug#21572: 24.5; Gud gdb doesn't load source files with utf-8 chars in the file name Date: Wed, 30 Sep 2015 21:37:33 -0300 Message-ID: References: <87612vopc0.fsf@deskarch0.i-did-not-set--mail-host-address--so-tickle-me> <837fn7bxrb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1443699194 26960 80.91.229.3 (1 Oct 2015 11:33:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 11:33:14 +0000 (UTC) To: 21572@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 13:33:01 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 1Zhc6b-0007A6-Kg for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 13:32:57 +0200 Original-Received: from localhost ([::1]:48521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhc6a-0007PM-Gi for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 07:32:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhRss-0003hl-IU for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 20:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhRso-00022l-Ev for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 20:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhRso-00022h-BN for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 20:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZhRso-0003bg-3A for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 20:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Fraga Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2015 00:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21572-submit@debbugs.gnu.org id=B21572.144365985713820 (code B ref 21572); Thu, 01 Oct 2015 00:38:01 +0000 Original-Received: (at 21572) by debbugs.gnu.org; 1 Oct 2015 00:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:49692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhRsP-0003ap-CS for submit@debbugs.gnu.org; Wed, 30 Sep 2015 20:37:37 -0400 Original-Received: from mail-wi0-f173.google.com ([209.85.212.173]:32796) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhRsM-0003ah-Jk for 21572@debbugs.gnu.org; Wed, 30 Sep 2015 20:37:35 -0400 Original-Received: by wiclk2 with SMTP id lk2so10069341wic.0 for <21572@debbugs.gnu.org>; Wed, 30 Sep 2015 17:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oxs9SqI2hSwi2fmOPsrCH6hCQI58Hqg8i64KsthpfcA=; b=lw4dqB7ZkYbOlNN5jX6UbmS+L6FINLQ7YApIdBWV6VtTfGTrWsQUvhCZ57rgYfKBUf wN9ga3gluIyM7KOOkfrfUk14tgH/ITKqqZSSmCoYCA6Rr/iHdYtP9k0II3mI23Elk+gT HsOwVcukKv6JlC8WNoxiNkbHo6DCyPS3hXz85aGELqmv3Xe2mB+wrqE2fcHHLr3ouvsJ XHTgd5DQHksn0wCrXr0T4gMHHDt3a+IRarBBVF28iHtIn+G+KP4e+5xOU82lVIaDT2ir 3JtWOBCyaIXufXOhubG4q4ujLxB6tfv4/Dm5WB3+snUANuflPMAcUbhoRfoV3hNPcLJQ WdtA== X-Received: by 10.180.208.49 with SMTP id mb17mr226553wic.52.1443659853905; Wed, 30 Sep 2015 17:37:33 -0700 (PDT) Original-Received: by 10.28.215.136 with HTTP; Wed, 30 Sep 2015 17:37:33 -0700 (PDT) In-Reply-To: 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:107122 Archived-At: > From: Eli Zaretskii gnu.org> > Date: Wed, 30 Sep 2015 20:52:24 +0300 > > Actually, it's not very simple. GDB outputs octal escapes in every > string, not just in file names, so decoding should be done on a very > low level, where we don't yet know what is a file name and what is > some other string (like a value of some string variable). The only string that needs to be converted back to UTF-8 is the sources file names string (couldn't it be done by hacking the gdb-get-source-file-list function?). > We can decode that if we assume that all the strings output by GDB are > encoded the same (in your case, probably UTF-8), and keeping fingers > crossed that the communications channel between GBD and Emacs never > breaks the 3-digit sequence due to buffering issues. I think that would be a nice option if gdb had a flag to disable these octal sequences for the mi protocol. It would make everything easier. > I have a prototype fix along the above-mentioned lines which I will > commit soon, unless someone has a better idea. You could then patch > your gdb-mi.el and use it with those source files. Nice! I'll try it out when you commit. > Alternatively, you can invoke GDB via "M-x gud-gdb RET", which doesn't > have this problem in the first place. Well, but I wouldn't have a good source debugging interface. In fact the "M-x gdb RET" doesn't fails, it only doesn't load the buffer for the source code (it behaves like standard gdb without tui). Thank you!