Changeset b2f9f62dd17e…
Parent 98be5bcd15df…
by
Changes to one file · Browse files at b2f9f62dd17e Showing diff from parent 98be5bcd15df Diff from another changeset...
@@ -19,6 +19,7 @@ from hggtk import dialog, gdialog, gtklib, hgcmd
_unspecstr = _('<unspecified>')
+_unspeclocalstr = hglib.fromutf(_unspecstr)
_pwfields = ('http_proxy.passwd', 'smtp.password')
@@ -916,8 +917,9 @@ return iniparse.INIConfig(file(fn), optionxformvalue=None)
def record_new_value(self, cpath, newvalue, keephistory=True):
+ # 'newvalue' is converted to local encoding
section, key = cpath.split('.', 1)
- if newvalue == _unspecstr or newvalue == '':
+ if newvalue == _unspeclocalstr or newvalue == '':
try:
del self.ini[section][key]
except KeyError:
|
Loading...