bug#25754: 24.5; gdb goes wrong when using non-English file or directory
bug#25754: 24.5; gdb goes wrong when using non-English file or directory name
Thu, 16 Feb 2017 23:10:05 +0800
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.
Hope that the problem can be solved. Thanks. :)
And sorry for my poor English.
In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS
Important settings: value of $LANG: zh_CN.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix
Major mode: C++/lah
Minor modes in effect: gdb-many-windows: t linum-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t hs-minor-mode: t
Recent messages: Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Gdb-Many-Windows mode enabled Command: break bzoj2821.cpp:13 Command: clear bzoj2821.cpp:13 Command: break bzoj2821.cpp:70 Command: clear bzoj2821.cpp:70 Quit Making completion list... [2 times]