equal
deleted
inserted
replaced
209 # be locale dependent (e.g. date formatting.) |
209 # be locale dependent (e.g. date formatting.) |
210 if pycompat.ispy3: |
210 if pycompat.ispy3: |
211 strtolocal = unitolocal |
211 strtolocal = unitolocal |
212 strfromlocal = unifromlocal |
212 strfromlocal = unifromlocal |
213 else: |
213 else: |
214 strtolocal = str |
214 strtolocal = pycompat.identity |
215 strfromlocal = str |
215 strfromlocal = pycompat.identity |
216 |
216 |
217 if not _nativeenviron: |
217 if not _nativeenviron: |
218 # now encoding and helper functions are available, recreate the environ |
218 # now encoding and helper functions are available, recreate the environ |
219 # dict to be exported to other modules |
219 # dict to be exported to other modules |
220 environ = dict((tolocal(k.encode(u'utf-8')), tolocal(v.encode(u'utf-8'))) |
220 environ = dict((tolocal(k.encode(u'utf-8')), tolocal(v.encode(u'utf-8'))) |