openSUSE/osc — pull request #8 by nijel (2012-08-06 07:32:02+00:00)
Title: Better detection of user charset

Using locale.getdefaultlocale() for encoding detection breaks with
locales that use modifiers, such as de_DE@euro, or ca_ES@valencia.
Use locale.getpreferredencoding() instead, which should do the right
thing.

Originally reported at http://bugs.debian.org/682261