trac+bzr and encodings of source code files

Aaron Bentley aaron.bentley at utoronto.ca
Thu Jun 7 19:15:21 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko wrote:
> Hi,
> I have a problem with trac+bzr. Generally it works, but it treats all my source files as latin-1
> encoded files. But they actually russian texts (cp1251). How can I teach trac+bzr to interpret them
> as cp1251? Quick fix will enough for me.

You might be able to change BzrFileNode.get_content_type() to return
'text/plain; charset=cp1251'

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaEs50F+nu1YWqI0RArhyAJ9mf2Yt5I78XVGgcbUFXzPSCSZSewCeKi45
0I6HcC1ZxeJDHDR0E9FmbUA=
=juTD
-----END PGP SIGNATURE-----



More information about the bazaar mailing list