git-webui
git-webui copied to clipboard
Encoding error on Windows and Chinese version.
Below is the traceback when I try to use git webui
in Chinese Windows system with Python 2.7.
The repo path itself doesn't contain any non-ascii characters.
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\SocketServer.py", line 649, in __init__
self.handle()
File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
method()
File "C:/Users/n3132/.git-webui/release/libexec/git-core/git-webui", line 106, in do_GET
self.send_text(200, codecs.encode(wc, "utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 4: ordinal not in range(128)