Le dimanche 18 octobre 2009 à 02:45 +0000, The Fungi a écrit : > On Wed, Oct 14, 2009 at 03:39:30PM +0000, The Fungi wrote: > [...] > > I'll see if I can get my hands on a virtual machine to replicate > > the issue and hopefully figure out a fix. > [...] > > I'll follow up again when I have something. > > Okay, I was able to replicate the problem under IE 8 in XP within > VirtualBox, and can see the same behavior you described. > Unfortunately, neither the original AjaxTerm source nor the UTF-8 > patch have useful inline comments, so I'm having a little trouble > following them. After a lot of unsuccessful shotgun debugging (which > is never really a good idea anyway, silly me) I finally resorted to > hacking out the HTTP compression in qweb.py and taking some before > and after packet captures with tcpdump. Right away I saw an obvious > difference... > > The original AjaxTerm code performed inline replacement of all > spaces (really, anything from nul/0x00 up to and including > space/0x20, except lf/0x0a) with a non-breaking space (0xa0), > presumably to prevent some browsers from attempting to break lines > and word-wrap them. I can see evidence of this in my particular > application, where some ASCII art is getting mangled due to spurious > linebreaks. I was able to revert this regression by changing > span.encode('utf8') to span.replace(u' ',u'\xa0').encode('utf8') at > ajaxterm.py:326. After that, not only are the unwanted linebreaks > gone, but the cursor also once again looks like it should.
I have applied your fix and everything seems to work as expected! Many thanks for your great work. > Also, somewhat less important, the ANSI bold attribute is no longer > shifting color numbers by one bit (0-7 -> 8-15). The ANSI escape and > color handling code, both in original AjaxTerm and the patched > version, is significantly opaque that it requires a bit more > meditation before I can unravel it and find a fix. More to come. Main thing is that patches applied to the debian package do not introduce any regression. But another thing with ajaxterm is that the upstream developer seems off and doesn't answer to email, whereas he was quite responsive not so long ago. Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org