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\", line 71, in launch content = application(environ, start_response) File "c:\Python26\lib\site-packages\mercurial\hgweb\", line 103, in call return self.run_wsgi(req) File "c:\Python26\lib\site-packages\mercurial\hgweb\", line 160, in run_wsgi return hgweb(repo).run_wsgi(req) File "c:\Python26\lib\site-packages\mercurial\hgweb\", line 123, in run_wsgi return method(self.repo, req) File "c:\Python26\lib\site-packages\mercurial\hgweb\", line 167, in unbundle ret = repo.addchangegroup(gen, 'serve', url) File "c:\Python26\lib\site-packages\mercurial\", line 2021, in addchangegroup self.ui.status(_("adding changesets\n")) File "c:\Python26\lib\site-packages\mercurial\", line 340, in status self.write(msg) File "c:\Python26\lib\site-packages\mercurial\", line 128, in wrap return wrapper(origfn, args, **kwargs) File "C:\Mercurial\extensions\fixutf8\", line 140, in f win32helper.rawprint(h, ''.join(args)) File "C:\Mercurial\extensions\fixutf8\", 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