trac+bzr and encodings of source code files

Alexander Belchenko bialix at ukr.net
Fri Jun 8 07:18:05 BST 2007


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

Aaron Bentley пишет:
> 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'

Thanks, it works. I try to figure out, how to deal with binary files,
like pdf.
But in the future (IMO) we need provide such information from inventory.

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaPSczYr338mxwCURAhFgAJ4mUdnl6sRLdp6BfnUT46kxGG8AtgCfZ9Lc
tRb9UpGqYoxywO3SOXNdVvY=
=RM5l
-----END PGP SIGNATURE-----



More information about the bazaar mailing list