mercurial/bookmarks.py
changeset 13381 d073468e3c5f
parent 13354 4e1ba6ead69c
child 13416 5431b3f3e52e
--- a/mercurial/bookmarks.py	Mon Feb 14 07:39:21 2011 +0000
+++ b/mercurial/bookmarks.py	Fri Feb 11 19:32:49 2011 +0100
@@ -38,7 +38,7 @@
     if os.path.exists(repo.join('bookmarks.current')):
         file = repo.opener('bookmarks.current')
         # No readline() in posixfile_nt, reading everything is cheap
-        mark = (file.readlines() or [''])[0]
+        mark = encoding.tolocal((file.readlines() or [''])[0])
         if mark == '':
             mark = None
         file.close()