Show More
@@ -38,7 +38,7 b' def readcurrent(repo):' | |||||
38 | if os.path.exists(repo.join('bookmarks.current')): |
|
38 | if os.path.exists(repo.join('bookmarks.current')): | |
39 | file = repo.opener('bookmarks.current') |
|
39 | file = repo.opener('bookmarks.current') | |
40 | # No readline() in posixfile_nt, reading everything is cheap |
|
40 | # No readline() in posixfile_nt, reading everything is cheap | |
41 | mark = (file.readlines() or [''])[0] |
|
41 | mark = encoding.tolocal((file.readlines() or [''])[0]) | |
42 | if mark == '': |
|
42 | if mark == '': | |
43 | mark = None |
|
43 | mark = None | |
44 | file.close() |
|
44 | file.close() |
General Comments 0
You need to be logged in to leave comments.
Login now