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#25754: 24.5; gdb goes wrong when using non-English file or directory name Date: Thu, 16 Feb 2017 19:52:08 +0200 Message-ID: <83mvdmxbuf.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487267660 1528 195.159.176.226 (16 Feb 2017 17:54:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 17:54:20 +0000 (UTC) Cc: 25754@debbugs.gnu.org To: "chrt" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 18:54:13 2017 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 1ceQFw-0008EK-8T for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 18:54:12 +0100 Original-Received: from localhost ([::1]:48659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQG2-00075E-1v for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 12:54:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQFr-00073H-7Z for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 12:54:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceQFm-00084I-Se for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 12:54:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceQFm-00084E-PO for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 12:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ceQFm-0005qZ-I8 for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 12:54: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: Thu, 16 Feb 2017 17:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25754-submit@debbugs.gnu.org id=B25754.148726758322375 (code B ref 25754); Thu, 16 Feb 2017 17:54:02 +0000 Original-Received: (at 25754) by debbugs.gnu.org; 16 Feb 2017 17:53:03 +0000 Original-Received: from localhost ([127.0.0.1]:42509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceQEp-0005op-DT for submit@debbugs.gnu.org; Thu, 16 Feb 2017 12:53:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceQEn-0005oL-Go for 25754@debbugs.gnu.org; Thu, 16 Feb 2017 12:53:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceQEd-0007hT-Dk for 25754@debbugs.gnu.org; Thu, 16 Feb 2017 12:52:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQEd-0007hP-AV; Thu, 16 Feb 2017 12:52:51 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2476 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ceQEc-0002Wm-GH; Thu, 16 Feb 2017 12:52:51 -0500 In-reply-to: (chrt2000@gmail.com) 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:129414 Archived-At: > From: "chrt" > Date: Thu, 16 Feb 2017 23:10:05 +0800 > Feedback-ID: webmail:qq.com:bgforeign:bgforeign1 > > I opened a existing C++ source code with Chinese file name, > then used `M-x gdb`:`gdb -i=mi xxx` and `M-x gdb-many-windows`. > Trying clicking the fringe to set a breakpoint, I didn't get a little red > point as expected, though it appeared successfully in the breakpoints > buffer. However, then I was told that `Use M-x make-directory RET RET > to create the directory and its parents`. Clicking the fringe again, it > told me > `File /home/_directory_name_/"/home/_directory_name_/_some_strange_numbers_with_backslash_.cpp" > is read-only on disk. Make buffer read-only, too? (y or n)` > > After changing the file name into a English one, gdb worked normally. It > also went wrong when picking a Chinese directory name. Please upgrade to Emacs 25.1, this problem should be fixed there. If this still doesn't work out-of-the-box in Emacs 25.1, customize gdb-mi-decode-strings to a non-nil value.