1. Stefan Rusek
  2. hg-fixutf8
  3. Issues
Issue #21 resolved


Eugene Baranov
created an issue

Pushing to a remote server via http causes "LookupError: unknown encoding: cp0". (It works when pushing via network share)

Traceback (most recent call last): File "C:\Inetpub\hgcgi\hgwebdir.cgi", line 67, in <module> wsgicgi.launch(application) File "c:\Python26\lib\site-packages\mercurial\hgweb\wsgicgi.py", line 71, in launch content = application(environ, start_response) File "c:\Python26\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line 103, in call return self.run_wsgi(req) File "c:\Python26\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py", line 160, in run_wsgi return hgweb(repo).run_wsgi(req) File "c:\Python26\lib\site-packages\mercurial\hgweb\hgweb_mod.py", line 123, in run_wsgi return method(self.repo, req) File "c:\Python26\lib\site-packages\mercurial\hgweb\protocol.py", line 167, in unbundle ret = repo.addchangegroup(gen, 'serve', url) File "c:\Python26\lib\site-packages\mercurial\localrepo.py", line 2021, in addchangegroup self.ui.status(_("adding changesets\n")) File "c:\Python26\lib\site-packages\mercurial\ui.py", line 340, in status self.write(msg) File "c:\Python26\lib\site-packages\mercurial\extensions.py", line 128, in wrap return wrapper(origfn, args, **kwargs) File "C:\Mercurial\extensions\fixutf8\fixutf8.py", line 140, in f win32helper.rawprint(h, ''.join(args)) File "C:\Mercurial\extensions\fixutf8\win32helper.py", line 84, in rawprint s = u.encode('cp%d' % oldcp) LookupError: unknown encoding: cp0

The server is running on Windows 2003, IIS6, Python 2.6, Mercurial 1.5.1

Comments (4)

  1. Anonymous

    It looks like the IIS CGI environment in hgwebcgi isn't compatible. You would probably be better off disabling the plugin in hgwebcgi, since it isn't needed in a web environment, since there aren't any working copies.

  2. Log in to comment