RFC: make ~/.bzr.log utf8
John Arbash Meinel
john at arbash-meinel.com
Sat Dec 5 13:37:16 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
> Currently, if mutter can't encode something, it just blats it out
> anyway.
>
> This makes it harder to read ~/.bzr.log in - what do folk think of
> making it substitude or escape non unicode-non-ascii info ?
>
> -Rob
>
It seems ok. I'm not sure that it is better for human reading, but I
suppose you could use ".escape('unicode_escape')" or 'string_escape'.
That gives:
>>> u'\xff'.encode('unicode_escape')
'\\xff'
Which I believe means it will leave most readable characters alone, and
only escape the unreadable ones.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksaYgwACgkQJdeBCYSNAAPnMgCg07Cz+4zdX+e8ek87N8z/DAMl
iEQAoJhzMfjPiJDqxX6vu9V8GZxyN/88
=7cPb
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list