aMSN Forums
June 20, 2013, 05:31:52 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: aMSN SVN(August 30 2007 02:12:27) BUG & Solution  (Read 2194 times)
davidng
Newbie

Offline Offline

Posts: 1


View Profile WWW
« on: August 30, 2007, 08:08:36 am »

I download the latest aMSN and compile it.
I found a bug.

I am using ubuntu 7.1,  My Gnome interface is English, but my locale is traditional chinese
david@david-desktop:~$ locale
LANG=en_HK.UTF-8
LC_CTYPE=zh_HK.UTF-8

I launch my compile aMSN and found the chinese character in the loging window in not chinese.
So, I try to report the problem, but I am a PHP programmer, what the heck, let me try...

Finally, I fix the problem. And this is my first linux programming... ^-^
the problem occur in the method handleUBX which locate in protocol.tcl

Note: I comment the original code by #
Note: I only show part of that method, the rest is the same as original.

Code:

method handleUBX { command payload } {
set contact [lindex $command 1]
if {$payload != ""} {
if { [catch { set xml [xml2list $payload] } ] } {
return
}
#set psm [GetXmlEntry $xml "Data:PSM"]
#set currentMedia [GetXmlEntry $xml "Data:CurrentMedia"]
set psm [::sxml::replacexml [encoding convertfrom utf-8 [GetXmlEntry $xml "Data:PSM"]]]
set currentMedia [::sxml::replacexml [encoding convertfrom utf-8 [GetXmlEntry $xml "Data:CurrentMedia"]]]
} else {
set psm ""
set currentMedia ""
}

#::abook::setVolatileData $contact PSM [::sxml::replacexml [encoding convertfrom utf-8 $psm]]
#::abook::setVolatileData $contact currentMedia [::sxml::replacexml [encoding convertfrom utf-8 $currentMedia]]
::abook::setVolatileData $contact PSM $psm
::abook::setVolatileData $contact currentMedia $currentMedia
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: September 01, 2007, 07:02:03 pm »

Thanks for finding AND fixing this bug! I'm committing this patch to SVN.
Thanks again.
Logged

KaKaRoTo
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!