]> git.ozlabs.org Git - patchwork/commit
pwclient get: fix for handling messages encoded in UTF-8
authorPaul Menzel <paulepanter@users.sourceforge.net>
Sun, 24 Jan 2010 20:06:57 +0000 (21:06 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 24 Jan 2010 21:58:34 +0000 (08:58 +1100)
commitd5edf740c9c2c31fa60c757aa8d66e1dedbab74a
tree0017ccfa88fedfc3301327895894891104c4ab5b
parent73ec099a07e095016c56e49e050e20ed7056cb35
pwclient get: fix for handling messages encoded in UTF-8

Trying `pwclient get` with a message containing UTF-8 characters you
would get the following error.

    $ python -v pwclient get ID
    [...]
    # trying /usr/lib/python2.5/encodings/ascii.so
    # trying /usr/lib/python2.5/encodings/asciimodule.so
    # trying /usr/lib/python2.5/encodings/ascii.py
    # /usr/lib/python2.5/encodings/ascii.pyc matches /usr/lib/python2.5/encodings/ascii.py
    import encodings.ascii # precompiled from /usr/lib/python2.5/encodings/ascii.pyc
    Failed to write to subject.patch
    [...]

You can reproduce it with

    $ pwclient get http://patchwork.openembedded.org/patch/1440/

and the fix is the same as in 4fc6a16910e595401e919abde28cca436193e0dd
by Mauro Carvalho Chehab.

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
apps/patchwork/bin/pwclient