[PATCH] Commit and log commands: strings encodings

Robey Pointer robey at lag.net
Thu Dec 1 02:55:53 GMT 2005


On 24 Nov 2005, at 7:43, Alexander Belchenko wrote:

> This patch provide 2 new global options:
> --input-encoding or -i
> --output-encoding or -o
>
> Input encoding used for decoding commit message from external  
> editor AND from file. Note: commit message from command line (-m  
> option) always decoded to unicode with bzrlib.user_encoding.
>
> Output encoding used for encoding log message.


Could we just support flags for overriding the input and output  
encodings into UTF-8, and then rely on iconv to do more complex  
encoding?

$ bzr log --utf8 | iconv -f utf-8 -t iso-8859-15

Just thinking out loud -- it would be nice to avoid tackling every  
problem that another tool has solved for us.

robey





More information about the bazaar mailing list