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.
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