cgdb UTF-8乱码
support utf-8 cgdb github上的issues里面有人提到了这个问题,维护者回复的是需要使用 libncursesw 这个支持宽字符的库来解决这个问题。 查看是否安装了该库 ldconfig -p | grep libncursesw ,未安装则查看有哪些库: thomas@ubuntu:~$ apt search libncursesw Sorting... Done Full Text Search... Done `libncursesw5`/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 shared libraries for terminal handling (wide character support) `libncursesw5-dbg`/bionic-updates 6.1-1ubuntu1.18.04 amd64 debugging/profiling libraries for ncursesw `libncursesw5-dev`/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 developer's libraries for ncursesw 分别有三个,我当时选择的是第一个 libncursesw5 ,进行了安装