mercurial/windows.py
changeset 31447 067add650129
parent 30636 f1c9fafcbf46
child 31539 52361c4f4dac
equal deleted inserted replaced
31446:9a94239e4f12 31447:067add650129
   440         scope = (scope,)
   440         scope = (scope,)
   441     for s in scope:
   441     for s in scope:
   442         try:
   442         try:
   443             val = winreg.QueryValueEx(winreg.OpenKey(s, key), valname)[0]
   443             val = winreg.QueryValueEx(winreg.OpenKey(s, key), valname)[0]
   444             # never let a Unicode string escape into the wild
   444             # never let a Unicode string escape into the wild
   445             return encoding.tolocal(val.encode('UTF-8'))
   445             return encoding.unitolocal(val)
   446         except EnvironmentError:
   446         except EnvironmentError:
   447             pass
   447             pass
   448 
   448 
   449 expandglobs = True
   449 expandglobs = True
   450 
   450