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: Thu, 29 Nov 2018 21:35:53 +0200 Message-ID: <83tvjzd6cm.fsf@gnu.org> References: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 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 1543520049 28754 195.159.176.226 (29 Nov 2018 19:34:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 19:34:09 +0000 (UTC) Cc: 33548@debbugs.gnu.org To: ksqsf Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 20:34:05 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 1gSS4b-0007KB-00 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 20:34:05 +0100 Original-Received: from localhost ([::1]:55968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSS6h-0007li-3L for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 14:36:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSS6Z-0007l5-7G for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 14:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSS6W-0005pc-4A for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 14:36:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSS6V-0005pS-TL for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 14:36:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSS6U-0003G9-FE for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 14:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Nov 2018 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33548 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33548-submit@debbugs.gnu.org id=B33548.154352015112510 (code B ref 33548); Thu, 29 Nov 2018 19:36:02 +0000 Original-Received: (at 33548) by debbugs.gnu.org; 29 Nov 2018 19:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:55142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSS6I-0003Fi-Qz for submit@debbugs.gnu.org; Thu, 29 Nov 2018 14:35:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSS6H-0003FU-8v for 33548@debbugs.gnu.org; Thu, 29 Nov 2018 14:35:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSS68-0005hW-Ob for 33548@debbugs.gnu.org; Thu, 29 Nov 2018 14:35:43 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSS68-0005hQ-Hh; Thu, 29 Nov 2018 14:35:40 -0500 Original-Received: from [176.228.60.248] (port=3774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gSS68-0002LN-0D; Thu, 29 Nov 2018 14:35:40 -0500 In-reply-to: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 (message from ksqsf on Fri, 30 Nov 2018 00:58:34 +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:152902 Archived-At: > From: ksqsf > Date: Fri, 30 Nov 2018 00:58:34 +0800 > Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign2 > > It seems that GDB MI doesn't decode file paths correctly, which can > result in some really weird unexpected behaviors. > > For example, it attempts to find file > /home/ksqsf/我的坚果云/"/home/ksqsf/\346\210\221\347\232\204\345\235\232\346 > \236\234\344\272\221/code.cpp" > > I traced down to the source and found that gdb-get-source-file, gdb- > get-source-file-list, and gdb-get-location don't decode file paths > using a correct coding system. (In my case, UTF-8.) Instead, they > simply use 'read'. Does it help to set gdb-mi-decode-strings to utf-8?