Issue #21 resolved

LookupError

Eugene Baranov avatarEugene 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.