[Bug 6822] New: test-hgrc.t: fails with encoding problem
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Jun 16 22:22:41 UTC 2023
https://bz.mercurial-scm.org/show_bug.cgi?id=6822
Bug ID: 6822
Summary: test-hgrc.t: fails with encoding problem
Product: Mercurial
Version: unspecified
Hardware: All
OS: NetBSD
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: tk at giga.or.at
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
With Python 3.11 in my environment, I see:
--- /scratch/devel/py-mercurial/work/mercurial-6.4.4/tests/test-hgrc.t
+++ /scratch/devel/py-mercurial/work/mercurial-6.4.4/tests/test-hgrc.t.err
@@ -310,6 +310,21 @@
#if no-pyoxidizer-in-filesystem
$ HGRCSKIPREPO=1 hg paths --config extensions.zeroconf=
+ Traceback (most recent call last):
+ File
"/tmp/hgtests.6ypr5aft/install/lib/python/hgext/zeroconf/Zeroconf.py", line
954, in run
+ self.readers[sock].handle_read()
+ File
"/tmp/hgtests.6ypr5aft/install/lib/python/hgext/zeroconf/Zeroconf.py", line
1008, in handle_read
+ msg = DNSIncoming(data)
+ ^^^^^^^^^^^^^^^^^
+ File
"/tmp/hgtests.6ypr5aft/install/lib/python/hgext/zeroconf/Zeroconf.py", line
524, in __init__
+ self.readQuestions()
+ File
"/tmp/hgtests.6ypr5aft/install/lib/python/hgext/zeroconf/Zeroconf.py", line
555, in readQuestions
+ question = DNSQuestion(name, info[0], info[1])
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File
"/tmp/hgtests.6ypr5aft/install/lib/python/hgext/zeroconf/Zeroconf.py", line
296, in __init__
+ name = name.encode('ascii')
+ ^^^^^^^^^^^^^^^^^^^^
+ UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in
position 19: ordinal not in range(128)
foo = $TESTTMP/bar
#else
$ HGRCSKIPREPO=1 hg paths --config extensions.zeroconf=
ERROR: test-hgrc.t output changed
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list