[QBzr:MERGE] bugfix #148159: custom encoding for files content in qdiff and qannotate
Lukáš Lalinský
lalinsky at gmail.com
Sat Oct 13 15:34:04 BST 2007
On So, 2007-10-13 at 15:01 +0300, Alexander Belchenko wrote:
> Lukas,
> This patch provide support for branch option 'encoding' that used
> to decode files content to unicode. Also I added command-line
> option 'encoding' for convenience.
Thanks, merged.
> + 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.
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?ISO-8859-1?Q?digit=E1lne?=
=?ISO-8859-1?Q?_podp=EDsan=E1?= =?UTF-8?Q?_=C4=8Das=C5=A5?=
=?ISO-8859-1?Q?_spr=E1vy?=
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071013/eec5e056/attachment-0001.pgp
More information about the bazaar
mailing list