[QBzr:MERGE] bugfix #148159: custom encoding for files content in qdiff and qannotate
Alexander Belchenko
bialix at ukr.net
Sun Oct 14 08:19:06 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lukáš Lalinský пишет:
> On So, 2007-10-13 at 15:01 +0300, Alexander Belchenko wrote:
>
>> + config = get_branch_config(branch)
>> + if encoding is None:
>> + encoding = config.get_user_option("encoding") or 'utf-8'
>> + else:
>> + config.set_user_option("encoding", encoding)
>
> It would be nice to validate the encoding if Python can use it.
Patch attached.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHEcLqzYr338mxwCURAvqKAJ48Hk3Ch0B4YWCxV3gHKRKoFqFQbQCfbdxc
zm8s2KVijKtZHB5bPodD/5A=
=l4MX
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: validate.encoding.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20071014/f72ac7b7/attachment.diff
More information about the bazaar
mailing list