[issue2411] hg convert for darcs fails with ISO8859-15 encoded log messages
Goetz Pfeiffer
bugs at mercurial.selenic.com
Fri Oct 1 10:05:54 UTC 2010
New submission from Goetz Pfeiffer <Goetz.Pfeiffer at helmholtz-berlin.de>:
The command "hg convert" on a darcs repository fails when the log messages
in that repository contain ISO8859-15 encoded strings. This is probably also
the case for other encodings that are not UTF-8.
I have tested this with mercurial 1.6.3 on a fedora12 system.
Here is a receipt to reproduce the problem (needs darcs):
mkdir test
cd test
darcs init
echo "first version" > file
darcs add file
echo "Ãberraschung" | iconv -f utf-8 -t iso8859-15 > log
darcs record --logfile log -A "johndoe at somecompany" -a
cd ..
hg convert test
A possible solution is added as a patch file here. This patch has to be
applied to
/usr/lib/python2.6/site-packages/hgext/convert/darcs.py
In my solution, the encoding of log messages of the source repository
can be given as an environment variable. So
HG_CONVERTER_ENCODING=iso8859-15 hg convert test
works with the darcs repo mentioned in the paragraph above.
Maybe this or another similar solution can be considered in the next
release of mercurial ?
----------
files: HGPATCH
messages: 13802
nosy: goetzp
priority: bug
status: unread
title: hg convert for darcs fails with ISO8859-15 encoded log messages
topic: convert
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2411>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HGPATCH
Type: application/octet-stream
Size: 1842 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101001/319d7261/attachment.obj>
More information about the Mercurial-devel
mailing list