Adding to Jelmer's comment in reply to bialix:
And that the encoding of files in a bzr branch may not bear any relation to the user's locale setting. User locale is good for interepreting user input, and for encoding unicode text to the user's preferred encoding.
But decoding of source files is a different problem than the one addressed by the user's locale. Source file data is not user input (it's rather like untrusted data off the internet) and it's definitely not unicode (otherwise we would not be worrying about decoding it).
Adding to Jelmer's comment in reply to bialix:
And that the encoding of files in a bzr branch may not bear any relation to the user's locale setting. User locale is good for interepreting user input, and for encoding unicode text to the user's preferred encoding.
But decoding of source files is a different problem than the one addressed by the user's locale. Source file data is not user input (it's rather like untrusted data off the internet) and it's definitely not unicode (otherwise we would not be worrying about decoding it).