Category:
Linux
Traceback (most recent call last):日本語ロケールだと上手く動かないみたいです。
File "/usr/sbin/authconfig", line 829, in ?
module.run()
File "/usr/sbin/authconfig", line 407, in run
self.parseOptions()
File "/usr/sbin/authconfig", line 271, in parseOptions
parser.parse_args(["-h"])
File "/usr/lib64/python2.4/optparse.py", line 1275, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1319, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib64/python2.4/optparse.py", line 1426, in _process_short_opts
option.process(opt, value, values, self)
File "/usr/lib64/python2.4/optparse.py", line 707, in process
return self.take_action(
File "/usr/lib64/python2.4/optparse.py", line 728, in take_action
parser.print_help()
File "/usr/sbin/authconfig", line 48, in print_help
file.write(self.format_help().decode(srcencoding).encode(encoding, "replace"))
File "/usr/lib64/python2.4/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 757-759: invalid data
# LANG=en_US.UTF-8 authconfig
とやれば OK。
*
authconfig って Python で書かれていたのか。。
Comments