No subject


Wed Jan 7 09:56:51 CST 2009


y it
tries to mix ascii-strings with unicode strings.

As a quick fix, I added ".decode(self.encoding)" in a few places. I haven't
tested this thoroughly, but from what I can tell it works for me.

----------
files: special-character-crash-fix.patch
messages: 9416
nosy: forbjok
priority: bug
status: unread
title: hg convert from svn crashes when path contains special characters
topic: 1.2.1, convert, svn

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1676>
____________________________________________________
--10.0.1.4.33.24005.1243344703.899.1
Content-Type: application/octet-stream
Content-Disposition: attachment;
    filename="special-character-crash-fix.patch"
Content-Transfer-Encoding: base64

IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIGtmawojIERhdGUgMTI0MzM0Mjk3NCAtNzIwMAoj
IE5vZGUgSUQgZGQ3M2UwMTJiOWQ0ZjdkNDk1OGYxNDBjOTA1OGU1NDdhN2Y3ZWNlNAojIFBhcmVu
dCAgMTA3YWYyMDhlZDBiZTBiZGI4OWNlMjk0NjA1MmIwNzk4YjZlODNkNAoqIGZpeCBjcmFzaCB3
aGVuIGNvbnZlcnRpbmcgZnJvbSBzdm4gcmVwb3NpdG9yeSB3aXRoIHBhdGhzIGNvbnRhaW5pbmcg
c3BlY2lhbCBjaGFyYWN0ZXJzCgpkaWZmIC1yIDEwN2FmMjA4ZWQwYiAtciBkZDczZTAxMmI5ZDQg
aGdleHQvY29udmVydC9zdWJ2ZXJzaW9uLnB5Ci0tLSBhL2hnZXh0L2NvbnZlcnQvc3VidmVyc2lv
bi5weQlTYXQgTWF5IDIzIDEyOjMxOjI4IDIwMDkgLTA1MDAKKysrIGIvaGdleHQvY29udmVydC9z
dWJ2ZXJzaW9uLnB5CVR1ZSBNYXkgMjYgMTU6MDI6NTQgMjAwOSArMDIwMApAQCAtNzA3LDcgKzcw
Nyw3IEBACiAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgICAgICAgICAgY29w
eWZyb21bcGF0aF0gPSBlbnQKICAgICAgICAgICAgICAgICBzZWxmLnVpLmRlYnVnKF8oIm1hcmsg
JXMgY2FtZSBmcm9tICVzOiVkXG4iKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJSAo
cGF0aCwgY29weWZyb21wYXRoLCBlbnQuY29weWZyb21fcmV2KSkKKyAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICUgKHBhdGguZGVjb2RlKHNlbGYuZW5jb2RpbmcpLCBjb3B5ZnJvbXBhdGgs
IGVudC5jb3B5ZnJvbV9yZXYpKQogICAgICAgICAgICAgICAgIGNoaWxkcmVuID0gc2VsZi5fZmlu
ZF9jaGlsZHJlbihlbnQuY29weWZyb21fcGF0aCwgZW50LmNvcHlmcm9tX3JldikKICAgICAgICAg
ICAgICAgICBjaGlsZHJlbi5zb3J0KCkKICAgICAgICAgICAgICAgICBmb3IgY2hpbGQgaW4gY2hp
bGRyZW46CkBAIC03MTUsNyArNzE1LDcgQEAKICAgICAgICAgICAgICAgICAgICAgaWYgbm90IGVu
dHJ5cGF0aDoKICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlCiAgICAgICAgICAgICAg
ICAgICAgIGVudHJ5ID0gZW50cnlwYXRoLmRlY29kZShzZWxmLmVuY29kaW5nKQotICAgICAgICAg
ICAgICAgICAgICBjb3B5dG9wYXRoID0gcGF0aCArIGVudHJ5W2xlbihjb3B5ZnJvbXBhdGgpOl0K
KyAgICAgICAgICAgICAgICAgICAgY29weXRvcGF0aCA9IHBhdGguZGVjb2RlKHNlbGYuZW5jb2Rp
bmcpICsgZW50cnlbbGVuKGNvcHlmcm9tcGF0aCk6XQogICAgICAgICAgICAgICAgICAgICBjb3B5
dG9wYXRoID0gc2VsZi5nZXRyZWxwYXRoKGNvcHl0b3BhdGgpCiAgICAgICAgICAgICAgICAgICAg
IGNvcGllc1tzZWxmLnJlY29kZShjb3B5dG9wYXRoKV0gPSBzZWxmLnJlY29kZShlbnRyeSwgcG1v
ZHVsZSkKIAo=

--10.0.1.4.33.24005.1243344703.899.1--


More information about the Mercurial-devel mailing list