From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly Date: Fri, 30 Nov 2018 09:39:31 +0200 Message-ID: <83k1kvc8uk.fsf@gnu.org> References: <1543510714.13628.2.camel@ksqsf.moe> +4500C08A0B612909 <83tvjzd6cm.fsf@gnu.org> <1543543399.17576.1.camel@ksqsf.moe>+CFAFEA2E65ADDA73 NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1543563490 30964 195.159.176.226 (30 Nov 2018 07:38:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2018 07:38:10 +0000 (UTC) Cc: 33548-done@debbugs.gnu.org To: ksqsf Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 08:38:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSdNG-0007wc-7b for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2018 08:38:06 +0100 Original-Received: from localhost ([::1]:58490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSdPM-0003v2-MX for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2018 02:40:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSdPA-0003tZ-OB for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 02:40:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSdP8-0007zZ-2W for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 02:40:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSdP7-0007zS-Tk for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 02:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSdP7-0007CC-Qq for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 02:40:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2018 07:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 33548 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 33548@debbugs.gnu.org, eliz@gnu.org, i@ksqsf.moe Original-Received: via spool by 33548-done@debbugs.gnu.org id=D33548.154356356827610 (code D ref 33548); Fri, 30 Nov 2018 07:40:01 +0000 Original-Received: (at 33548-done) by debbugs.gnu.org; 30 Nov 2018 07:39:28 +0000 Original-Received: from localhost ([127.0.0.1]:55458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSdOZ-0007BG-PK for submit@debbugs.gnu.org; Fri, 30 Nov 2018 02:39:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSdOY-0007B4-D7 for 33548-done@debbugs.gnu.org; Fri, 30 Nov 2018 02:39:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSdOP-0007j4-9P for 33548-done@debbugs.gnu.org; Fri, 30 Nov 2018 02:39:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSdOP-0007j0-5T; Fri, 30 Nov 2018 02:39:17 -0500 Original-Received: from [176.228.60.248] (port=4481 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gSdON-00071r-NM; Fri, 30 Nov 2018 02:39:16 -0500 In-reply-to: <1543543399.17576.1.camel@ksqsf.moe>+CFAFEA2E65ADDA73 (message from ksqsf on Fri, 30 Nov 2018 10:03:19 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:152919 Archived-At: > From: ksqsf > Cc: 33548@debbugs.gnu.org > Date: Fri, 30 Nov 2018 10:03:19 +0800 > Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign4 > > 在 2018-11-29四的 21:35 +0200,Eli Zaretskii写道: > > Does it help to set gdb-mi-decode-strings to utf-8? > > Yes! This fixes this problem for me. Thanks. This report can be closed > now. Done. > I think this variable deserves a mention in the doc anyway. What documentation did you have in mind? > Actually it should be made default. No, I don't think so. It has some confusing side effects, and in most cases is unnecessary. > I noticed the warning, but can we do better? I mean, simply stops gdb > from escaping strings (does gdb even support this?), as _inconsistent_ > escaping does nothing but introducing problems. You can tell GDB to stop escaping in strings ("set print sevenbit-strings", which is off by default), but GDB is under user control, and the user is legitimately allowed to turn escaping on, we cannot do anything about that. Plus, there are GDB settings to control the encoding of text strings that GDB emits based on values of the variables of the program being debugged. > LLDB seems to do better job in this regard. ??? LLDB doesn't have a respectable implementation of the MI protocol to begin with.