From unknown Tue Jun 24 05:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly Resent-From: ksqsf Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Nov 2018 17:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33548 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33548@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154351278625884 (code B ref -1); Thu, 29 Nov 2018 17:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Nov 2018 17:33:06 +0000 Received: from localhost ([127.0.0.1]:55067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSQBW-0006jQ-6g for submit@debbugs.gnu.org; Thu, 29 Nov 2018 12:33:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSPfE-0005vN-Lb for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSPf8-0002rj-RC for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSPf8-0002rc-O2 for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSPf8-0007GH-0D for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSPf4-0002qX-0Q for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:37 -0500 Received: from smtpbgsg2.qq.com ([54.254.200.128]:57735) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSPf3-0002pC-DP for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:33 -0500 X-QQ-mid: bizesmtp6t1543510760t14l3c75g Received: from veritas (unknown [183.162.29.172]) by esmtp6.qq.com (ESMTP) with SMTP id 0 for ; Fri, 30 Nov 2018 00:59:19 +0800 (CST) X-QQ-SSF: 0010000000200010F422B00A0000000 X-QQ-FEAT: DL8BXQjj6qoF4wa15x0S9RXb6k/uzArJpXQ8hG6xEma0aoMN5vLft1LHQLXft Rt44aXdnGi6B+xHWVATLXTWrN1DvSPjg5ThFe/rhL4CPi4gMtGKgTCoP/F/JnYr/xFQ4wl5 9D+ZNW4or+7O0w73ux7N47UWY9mW5RETB1Wc4FAtq5TigIEjr20X8kA6jfKXzAYIDKZbwMd 0BuqruTA/CkM+4wUZIZhPqPzAzIazRz/n/YO3YJZoxobAksYxkP8m0SLzQuvjRbbviOz0ph iIFg== X-QQ-GoodBg: 0 Message-ID: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 From: ksqsf Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Nov 2018 00:58:34 +0800 Mime-Version: 1.0 X-Mailer: Evolution 3.22.6-1+deb9u1 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.9 (--) X-Mailman-Approved-At: Thu, 29 Nov 2018 12:33:04 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) Dear maintainers, 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'. Hope this can be fixed soon! Regards, _rika From unknown Tue Jun 24 05:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly 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: To: ksqsf Cc: 33548@debbugs.gnu.org Received: via spool by 33548-submit@debbugs.gnu.org id=B33548.154352015112510 (code B ref 33548); Thu, 29 Nov 2018 19:36:02 +0000 Received: (at 33548) by debbugs.gnu.org; 29 Nov 2018 19:35:51 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 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 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 Date: Thu, 29 Nov 2018 21:35:53 +0200 Message-Id: <83tvjzd6cm.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 (message from ksqsf on Fri, 30 Nov 2018 00:58:34 +0800) References: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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? From unknown Tue Jun 24 05:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly Resent-From: ksqsf Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2018 02:04: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: To: Eli Zaretskii Cc: 33548@debbugs.gnu.org Received: via spool by 33548-submit@debbugs.gnu.org id=B33548.154354341318865 (code B ref 33548); Fri, 30 Nov 2018 02:04:02 +0000 Received: (at 33548) by debbugs.gnu.org; 30 Nov 2018 02:03:33 +0000 Received: from localhost ([127.0.0.1]:55358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSY9V-0004uC-6K for submit@debbugs.gnu.org; Thu, 29 Nov 2018 21:03:33 -0500 Received: from smtpproxy19.qq.com ([184.105.206.84]:47104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSY9T-0004tu-Ji for 33548@debbugs.gnu.org; Thu, 29 Nov 2018 21:03:31 -0500 X-QQ-mid: bizesmtp18t1543543401tahwjrmr Received: from veritas (unknown [36.60.154.73]) by esmtp6.qq.com (ESMTP) with id ; Fri, 30 Nov 2018 10:03:20 +0800 (CST) X-QQ-SSF: 0010000000200010F422B00A0000000 X-QQ-FEAT: 8YYOEVtNMVl+oL9rd5wfdSl8rBLSnj1SS3l3DGSMLuRAeX6F8Wp8/C5coAF+j M29MANYQ2gvjfN72CV7VhBqqU6luHhCjtgXbHhrfsgpkCjO8eCSH4T6PsHgRLPOB9BRbESQ E4vfQgUSh+LiybS7QeI9Md3SYqa6DsP5BztkeTBN2KcIGA46fKrYkfKxeqCmw3jRTiR/LNe jOvDWnRs4GlygNEOMLF2xZsYpAL1HIHdHw86dWOSSG+jF1IHSqgMz0Kr/nh40bzOGWswCxS 8Qnw== X-QQ-GoodBg: 0 Message-ID: <1543543399.17576.1.camel@ksqsf.moe>+CFAFEA2E65ADDA73 From: ksqsf Date: Fri, 30 Nov 2018 10:03:19 +0800 In-Reply-To: <83tvjzd6cm.fsf@gnu.org> References: <1543510714.13628.2.camel@ksqsf.moe> +4500C08A0B612909 <83tvjzd6cm.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?=E5=9C=A8_?= =?UTF-8?Q?2018-11-29=E5=9B=9B=E7=9A=84?= 21:35 =?UTF-8?Q?+0200=EF=BC=8CEli_?= =?UTF-8?Q?Zaretskii=E5=86=99=E9=81=93=EF=BC=9A?= > 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. I think this variable deserves a mention in the doc anyway. Actually it should be made default. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [184.105.206.84 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [184.105.206.84 listed in list.dnswl.org] 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 在 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. I think this variable deserves a mention in the doc anyway. Actually it should be made default. 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. LLDB seems to do better job in this regard. From unknown Tue Jun 24 05:11:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ksqsf Subject: bug#33548: closed (Re: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly) Message-ID: References: <83k1kvc8uk.fsf@gnu.org> <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 X-Gnu-PR-Message: they-closed 33548 X-Gnu-PR-Package: emacs Reply-To: 33548@debbugs.gnu.org Date: Fri, 30 Nov 2018 07:40:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1543563601-27659-1" This is a multi-part message in MIME format... ------------=_1543563601-27659-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33548: 25.1; GUD GDB doesn't decode file paths correctly which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33548@debbugs.gnu.org. --=20 33548: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33548 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1543563601-27659-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33548-done) by debbugs.gnu.org; 30 Nov 2018 07:39:28 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 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 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 Date: Fri, 30 Nov 2018 09:39:31 +0200 Message-Id: <83k1kvc8uk.fsf@gnu.org> From: Eli Zaretskii To: ksqsf In-reply-to: <1543543399.17576.1.camel@ksqsf.moe>+CFAFEA2E65ADDA73 (message from ksqsf on Fri, 30 Nov 2018 10:03:19 +0800) Subject: Re: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly References: <1543510714.13628.2.camel@ksqsf.moe> +4500C08A0B612909 <83tvjzd6cm.fsf@gnu.org> <1543543399.17576.1.camel@ksqsf.moe>+CFAFEA2E65ADDA73 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33548-done Cc: 33548-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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. ------------=_1543563601-27659-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Nov 2018 17:33:06 +0000 Received: from localhost ([127.0.0.1]:55067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSQBW-0006jQ-6g for submit@debbugs.gnu.org; Thu, 29 Nov 2018 12:33:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSPfE-0005vN-Lb for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSPf8-0002rj-RC for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSPf8-0002rc-O2 for submit@debbugs.gnu.org; Thu, 29 Nov 2018 11:59:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSPf8-0007GH-0D for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSPf4-0002qX-0Q for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:37 -0500 Received: from smtpbgsg2.qq.com ([54.254.200.128]:57735) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSPf3-0002pC-DP for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 11:59:33 -0500 X-QQ-mid: bizesmtp6t1543510760t14l3c75g Received: from veritas (unknown [183.162.29.172]) by esmtp6.qq.com (ESMTP) with SMTP id 0 for ; Fri, 30 Nov 2018 00:59:19 +0800 (CST) X-QQ-SSF: 0010000000200010F422B00A0000000 X-QQ-FEAT: DL8BXQjj6qoF4wa15x0S9RXb6k/uzArJpXQ8hG6xEma0aoMN5vLft1LHQLXft Rt44aXdnGi6B+xHWVATLXTWrN1DvSPjg5ThFe/rhL4CPi4gMtGKgTCoP/F/JnYr/xFQ4wl5 9D+ZNW4or+7O0w73ux7N47UWY9mW5RETB1Wc4FAtq5TigIEjr20X8kA6jfKXzAYIDKZbwMd 0BuqruTA/CkM+4wUZIZhPqPzAzIazRz/n/YO3YJZoxobAksYxkP8m0SLzQuvjRbbviOz0ph iIFg== X-QQ-GoodBg: 0 Message-ID: <1543510714.13628.2.camel@ksqsf.moe>+4500C08A0B612909 Subject: 25.1; GUD GDB doesn't decode file paths correctly From: ksqsf To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Nov 2018 00:58:34 +0800 Mime-Version: 1.0 X-Mailer: Evolution 3.22.6-1+deb9u1 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 29 Nov 2018 12:33:04 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) Dear maintainers, 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'. Hope this can be fixed soon! Regards, _rika ------------=_1543563601-27659-1-- From unknown Tue Jun 24 05:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly Resent-From: ksqsf Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2018 08:05:01 +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: To: Eli Zaretskii Cc: 33548-done@debbugs.gnu.org Received: via spool by 33548-done@debbugs.gnu.org id=D33548.154356505030155 (code D ref 33548); Fri, 30 Nov 2018 08:05:01 +0000 Received: (at 33548-done) by debbugs.gnu.org; 30 Nov 2018 08:04:10 +0000 Received: from localhost ([127.0.0.1]:55471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSdmU-0007qH-7i for submit@debbugs.gnu.org; Fri, 30 Nov 2018 03:04:10 -0500 Received: from smtpbguseast2.qq.com ([54.204.34.130]:54676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSdmS-0007pi-Ef for 33548-done@debbugs.gnu.org; Fri, 30 Nov 2018 03:04:08 -0500 X-QQ-mid: bizesmtp8t1543565037tqwrr5kni Received: from [114.214.195.228] (unknown [114.214.195.228]) by esmtp4.qq.com (ESMTP) with id ; Fri, 30 Nov 2018 16:03:56 +0800 (CST) X-QQ-SSF: 0010000000200020F422B00A0000000 X-QQ-FEAT: XQZ93KQF/mQDlAZxrJo/dNnJMUkDdXbDoAYk1JTwS5TjE+PzYsdKh38o7oCqM bA7v++jXbf/uQ4BaAbLfAYQbVNd7SKhDr8rfZFc0J0aeco1xM2rqBGVjAil8Dn8QgGqmb85 Gvx7w2Di6dgBz/JUWCI72tjsntuzIXyE3FzMlc93hyC+S0tpsZf+WVGwADth5UwZuAq/+hu tzHdBDmKZQyn99A73bHhtVRXT8QOr3GHSvFP/BEP8ZuBLrkxP+BQfSk6IHR47o+5LNGPe9x G5yw== X-QQ-GoodBg: 0 Message-ID: <1543565036.30749.1.camel@ksqsf.moe>+86558E4A2EA4D7AC From: ksqsf Date: Fri, 30 Nov 2018 16:03:56 +0800 In-Reply-To: <83k1kvc8uk.fsf@gnu.org> References: <1543510714.13628.2.camel@ksqsf.moe> +4500C08A0B612909 <83tvjzd6cm.fsf@gnu.org> <1543543399.17576.1.camel@ksqsf.moe> +CFAFEA2E65ADDA73 <83k1kvc8uk.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?=E5=9C=A8_?= =?UTF-8?Q?2018-11-30=E4=BA=94=E7=9A=84?= 09:39 =?UTF-8?Q?+0200=EF=BC=8CEli_?= =?UTF-8?Q?Zaretskii=E5=86=99=E9=81=93=EF=BC=9A?= > What documentation did you have in mind? "(emacs) Debuggers" or better "(emacs) GDB Graphical Interface". I did check these sections but neither mentions encoding. (At least in Emacs 25.1. Though I missed it in the source file...) Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [54.204.34.130 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 在 2018-11-30五的 09:39 +0200,Eli Zaretskii写道: > What documentation did you have in mind? "(emacs) Debuggers" or better "(emacs) GDB Graphical Interface". I did check these sections but neither mentions encoding. (At least in Emacs 25.1. Though I missed it in the source file...) From unknown Tue Jun 24 05:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2018 08:48:01 +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: To: ksqsf Cc: 33548-done@debbugs.gnu.org Received: via spool by 33548-done@debbugs.gnu.org id=D33548.15435676412125 (code D ref 33548); Fri, 30 Nov 2018 08:48:01 +0000 Received: (at 33548-done) by debbugs.gnu.org; 30 Nov 2018 08:47:21 +0000 Received: from localhost ([127.0.0.1]:55510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSeSH-0000YD-Hu for submit@debbugs.gnu.org; Fri, 30 Nov 2018 03:47:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSeSF-0000Y1-9l for 33548-done@debbugs.gnu.org; Fri, 30 Nov 2018 03:47:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSeS6-00042x-Ui for 33548-done@debbugs.gnu.org; Fri, 30 Nov 2018 03:47:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSeS6-00042a-QW; Fri, 30 Nov 2018 03:47:10 -0500 Received: from [176.228.60.248] (port=4986 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gSeS6-0002sT-D3; Fri, 30 Nov 2018 03:47:10 -0500 Date: Fri, 30 Nov 2018 10:47:26 +0200 Message-Id: <83h8fzc5pd.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1543565036.30749.1.camel@ksqsf.moe>+86558E4A2EA4D7AC (message from ksqsf on Fri, 30 Nov 2018 16:03:56 +0800) References: <1543510714.13628.2.camel@ksqsf.moe> +4500C08A0B612909 <83tvjzd6cm.fsf@gnu.org> <1543543399.17576.1.camel@ksqsf.moe> +CFAFEA2E65ADDA73 <83k1kvc8uk.fsf@gnu.org> <1543565036.30749.1.camel@ksqsf.moe>+86558E4A2EA4D7AC MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: ksqsf > Cc: 33548-done@debbugs.gnu.org > Date: Fri, 30 Nov 2018 16:03:56 +0800 > > 在 2018-11-30五的 09:39 +0200,Eli Zaretskii写道: > > What documentation did you have in mind? > > "(emacs) Debuggers" or better "(emacs) GDB Graphical Interface". I've put that in "Source Buffers" instead. Thanks.