~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

(vila) Make all transport put_bytes() raises TypeError when given unicode
 strings rather than bytes (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
    pr['Platform'] = platform.platform(aliased=1)
171
171
    pr['UserEncoding'] = osutils.get_user_encoding()
172
172
    pr['FileSystemEncoding'] = sys.getfilesystemencoding()
173
 
    pr['Locale'] = os.environ.get('LANG')
 
173
    pr['Locale'] = os.environ.get('LANG', 'C')
174
174
    pr['BzrPlugins'] = _format_plugin_list()
175
175
    pr['PythonLoadedModules'] = _format_module_list()
176
176
    pr['BzrDebugFlags'] = pprint.pformat(debug.debug_flags)
259
259
        os.open(filename, 
260
260
            os.O_WRONLY|os.O_CREAT|os.O_EXCL,
261
261
            0600),
262
 
        'w')
 
262
        'wb')
263
263
 
264
264
 
265
265
def _format_plugin_list():