From: W. Trevor King <wking@drexel.edu>
Date: Tue, 17 Nov 2009 14:51:18 +0000 (-0500)
Subject: Fixed bug with unicode handling reported by Nicolas Alvarez.
X-Git-Tag: 1.0.0~59^2~83
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5563818b85a7c9f68ede85cae902aceea42e5679;p=be.git

Fixed bug with unicode handling reported by Nicolas Alvarez.

Date: Mon, 16 Nov 2009 20:34:50 -0300
From: Nicolas Alvarez <nicolas.alvarez@gmail.com>
Subject: [Be-devel] Mercurial + BE + Unicode doesn't work

My username in ~/.hgrc contains a Unicode character. When I run "be new" on
a Mercurial repository, I get an unhandled Python exception:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13:
ordinal not in range(128)

The following shell script should reproduce the error:

#!/bin/sh

repo=/tmp/`mktemp -d bug-repro.XXXX`
hg init $repo
cd $repo
/usr/bin/printf "[ui]\nusername = Nicol\u00e1s\n" > $repo/.hg/hgrc
be set-root $repo
be new "Testing"
rm -rf /tmp/$repo


[WTK:
Note that the
  be set-root
usage is out of date, it is now
  be init
]
---

5563818b85a7c9f68ede85cae902aceea42e5679