C:\work\これはリポジトリです>hg init Traceback (most recent call last): File "hg", line 38, in <module> File "mercurial\dispatch.pyc", line 16, in run File "mercurial\dispatch.pyc", line 27, in dispatch File "mercurial\dispatch.pyc", line 123, in _runcatch UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
英語ロケールにしても
C:\work\これはリポジトリです>set LANG=en
C:\work\これはリポジトリです>hg init Traceback (most recent call last): File "hg", line 38, in <module> File "mercurial\dispatch.pyc", line 16, in run File "mercurial\dispatch.pyc", line 27, in dispatch File "mercurial\dispatch.pyc", line 123, in _runcatch File "mercurial\ui.pyc", line 306, in warn File "mercurial\extensions.pyc", line 115, in wrap File "C:\work\hgext-fixutf8\fixutf8.py", line 140, in f win32helper.rawprint(h, ''.join(args)) File "C:\work\hgext-fixutf8\win32helper.py", line 81, in rawprint u = s.decode('utf-8') File "encodings\utf_8.pyc", line 16, in decode UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 85: ordinal not in range(128)
ちなみに、"C:\work\これはリポジトリです" のような日本語ディレクトリで "hg init" は正しく動作しますでしょうか?
返信削除日本語ロケールだと
C:\work\これはリポジトリです>set LANG=ja
C:\work\これはリポジトリです>hg init
Traceback (most recent call last):
File "hg", line 38, in <module>
File "mercurial\dispatch.pyc", line 16, in run
File "mercurial\dispatch.pyc", line 27, in dispatch
File "mercurial\dispatch.pyc", line 123, in _runcatch
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
英語ロケールにしても
C:\work\これはリポジトリです>set LANG=en
C:\work\これはリポジトリです>hg init
Traceback (most recent call last):
File "hg", line 38, in <module>
File "mercurial\dispatch.pyc", line 16, in run
File "mercurial\dispatch.pyc", line 27, in dispatch
File "mercurial\dispatch.pyc", line 123, in _runcatch
File "mercurial\ui.pyc", line 306, in warn
File "mercurial\extensions.pyc", line 115, in wrap
File "C:\work\hgext-fixutf8\fixutf8.py", line 140, in f
win32helper.rawprint(h, ''.join(args))
File "C:\work\hgext-fixutf8\win32helper.py", line 81, in rawprint
u = s.decode('utf-8')
File "encodings\utf_8.pyc", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 85: ordinal not in range(128)
とエラーが出てしまうんです。