Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
jzq526
V2EX  ›  Linux

求助, Linux 下的终端 terminator 字符集问题

  •  
  •   jzq526 · Jan 29, 2020 · 3815 views
    This topic created in 2341 days ago, the information mentioned may be changed or developed.

    听说 terminator 这个 Linux 终端不错,就安装了一个。然后习惯性地输入命令: terminator -h

    结果显示:

    Traceback (most recent call last):
      File "/usr/bin/terminator", line 69, in <module>
        OPTIONS = terminatorlib.optionparse.parse_options()
      File "/usr/share/terminator/terminatorlib/optionparse.py", line 110, in parse_options
        (options, args) = parser.parse_args()
      File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args
        stop = self._process_args(largs, rargs, values)
      File "/usr/lib/python2.7/optparse.py", line 1443, in _process_args
        self._process_short_opts(rargs, values)
      File "/usr/lib/python2.7/optparse.py", line 1550, in _process_short_opts
        option.process(opt, value, values, self)
      File "/usr/lib/python2.7/optparse.py", line 788, in process
        self.action, self.dest, opt, value, values, parser)
      File "/usr/lib/python2.7/optparse.py", line 810, in take_action
        parser.print_help()
      File "/usr/lib/python2.7/optparse.py", line 1669, in print_help
        file.write(self.format_help().encode(encoding, "replace"))
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 118: ordinal not in range(128)
    

    貌似是字符集问题,但对 python 不熟悉,请教高手,该怎么处理才能让它显示帮助信息?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2649 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.