Hello Scott,
Tuesday, August 28, 2007, 9:01:24 PM, you wrote:
> Derek KuliA?ski wrote:
>> I suspect that maybe one of my contact uses special
>> character in his nickname or status message):
> The trunk version doesn't handle decoding unicode names. I'm too lazy to
> make a patch, but you want to edit src/tlib/[EMAIL PROTECTED]
> while len(itemdata)>4:
> nameLength = struct.unpack('!H', itemdata[:2])[0]
> - name = itemdata[2:2+nameLength]
> + name, _ = guess_encoding(itemdata[2:2+nameLength])
> groupID, buddyID, itemType, restLength = \
Neither of the solutions mentioned solved it, but maybe I'm doing
something wrong:
This is the change:
nameLength = struct.unpack('!H', itemdata[:2])[0]
#name = itemdata[2:2+nameLength]
name, _ = guess_encoding(itemdata[2:2+nameLength])
groupID, buddyID, itemType, restLength = \
/usr/local/lib/jabber/pyaim/src/tlib# python
/usr/local/lib/python2.5/compileall.py .
Listing . ...
Compiling ./oscar.py ...
/usr/local/lib/jabber/pyaim/src/tlib#
/usr/local/etc/rc.d/jabber-pyaim-transport restart
Stopping jabber_pyaim.
Waiting for PIDS: 30867, 30867, 30867.
Starting jabber_pyaim.
it behaves pretty much as if there was no change at all.
I don't know python so maybe I'm not doing it right, is the "#" to use
for comment ok?
--
Best regards,
Derek mailto:[EMAIL PROTECTED]
CCNA, SCSA, SCNA, LPIC, MCP certified
http://www.takeda.tk
I couldn't repair your brakes, so I made your horn louder.
_______________________________________________
py-transports mailing list
[email protected]
http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports