[mythtv-commits] Ticket #12642: Python binding socket UnicodeEncodeError

MythTV noreply at mythtv.org
Mon Feb 8 00:07:56 UTC 2016


#12642: Python binding socket UnicodeEncodeError
-------------------------------------------------+-------------------------
 Reporter:  angela.schmid@…                      |          Owner:
                                                 |  wagnerrp
     Type:  Patch - Bug Fix                      |         Status:  closed
 Priority:  minor                                |      Milestone:  unknown
Component:  Bindings - Python                    |        Version:
                                                 |  0.28-beta
 Severity:  medium                               |     Resolution:  fixed
 Keywords:  python binding mythproto socket      |  Ticket locked:  0
  send                                           |
-------------------------------------------------+-------------------------
Changes (by angelaschmid <angela.schmid@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e20bd8bf8e274274f4fb89420905015f57233e0c/mythtv"]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="e20bd8bf8e274274f4fb89420905015f57233e0c"
 Python binding - call Socket.send with non-unicode string

 Socket.send takes a string (not unicode).
 When Socket.send is called with an unicode string it tries to convert it
 with the ascii codec converter, resulting in an UnicodeEncodeError.

 Before calling Socket.send the data has to be converted to a non-unicode
 string (UTF-8 encoded).

 Fixes #12529
 Fixes #12642
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12642#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list