[issue1942] zeroconf crashes hg serve if web.description contains non-ASCII chars

Wagner Bruna bugs at mercurial.selenic.com
Wed Dec 9 16:00:51 UTC 2009


New submission from Wagner Bruna <wagner.bruna+mercurial at gmail.com>:

$ hg init t
$ cd t
$ hg --config 'extensions.hgext.zeroconf=' --config
'web.description=repositório' serve
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.4.1+4-8bce1e0d2801)
** Extensions loaded: acl, bookmarks, churn, color, convert, extdiff, fetch,
graphlog, hgcia, hgk, mq, notify, parentrevspec, patchbomb, purge, record,
rebase, share, transplant, relink, hgsubversion, hgeol, qup, rpc, zeroconf
Traceback (most recent call last):
  File "/home/wbruna/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 30, in dispatch
    return _runcatch(u, args)
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 46, in _runcatch
    return _dispatch(ui, args)
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 454, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 324, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 505, in
_runcommand
    return checkargs()
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 459, in checkargs
    return cmdfunc()
  File "/home/wbruna/hg/hg/inst_/mercurial/dispatch.py", line 453, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/wbruna/hg/hg/inst_/mercurial/util.py", line 386, in check
    return func(*args, **kwargs)
  File "/home/wbruna/hg/hg/inst_/mercurial/commands.py", line 2830, in serve
    cmdutil.service(opts, initfn=service.init, runfn=service.run)
  File "/home/wbruna/hg/hg/inst_/mercurial/cmdutil.py", line 577, in service
    initfn()
  File "/home/wbruna/hg/hg/inst_/mercurial/commands.py", line 2800, in init
    self.httpd = server.create_server(baseui, repo)
  File "mercurial/hgweb/server.py", line 295, in create_server
  File "mercurial/hgweb/server.py", line 256, in __init__
  File "mercurial/hgweb/server.py", line 251, in make_handler
  File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 106, in __init__

  File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 87, in publish

  File "hgext/zeroconf/Zeroconf.py", line 1052, in __init__
  File "hgext/zeroconf/Zeroconf.py", line 1065, in setProperties
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7:
ordinal not in range(128)

Ctrl-c doesn't kill the hg process afterwards; I had to use kill -9.

----------
messages: 11185
nosy: wbruna
priority: bug
status: unread
title: zeroconf crashes hg serve if web.description contains non-ASCII chars

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1942>
____________________________________________________


More information about the Mercurial-devel mailing list