[Tkabber-dev] r1229 - in trunk/tkabber: . plugins/chat

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Sep 18 00:04:21 MSD 2007


Author: sergei
Date: 2007-09-18 00:04:20 +0400 (Tue, 18 Sep 2007)
New Revision: 1229

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/plugins/chat/popupmenu.tcl
Log:
	* plugins/chat/popupmenu.tcl: Fixed double encoding of Google query to
	  UTF-8.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2007-09-16 13:35:40 UTC (rev 1228)
+++ trunk/tkabber/ChangeLog	2007-09-17 20:04:20 UTC (rev 1229)
@@ -1,3 +1,8 @@
+2007-09-17  Sergei Golovan  <sgolovan at nes.ru>
+
+	* plugins/chat/popupmenu.tcl: Fixed double encoding of Google query to
+	  UTF-8.
+
 2007-09-16  Sergei Golovan  <sgolovan at nes.ru>
 
 	* userinfo.tcl: Fixed bug with reconfiguring photo after it is

Modified: trunk/tkabber/plugins/chat/popupmenu.tcl
===================================================================
--- trunk/tkabber/plugins/chat/popupmenu.tcl	2007-09-16 13:35:40 UTC (rev 1228)
+++ trunk/tkabber/plugins/chat/popupmenu.tcl	2007-09-17 20:04:20 UTC (rev 1229)
@@ -1,5 +1,7 @@
 # $Id$
 
+package require http
+
 namespace eval popupmenu {
     hook::add postload_hook [namespace current]::init
     hook::add open_chat_post_hook [namespace current]::on_open_chat
@@ -211,8 +213,7 @@
 	set t [$cw get [lindex $sel 0] [lindex $sel 1]]
 	debugmsg popupmenu "google for $t"
 	browseurl \
-	    http://www.google.com/search?ie=UTF-8&oe=UTF-8&[::http::formatQuery \
-		q [encoding convertto utf-8 $t]]
+	    http://www.google.com/search?[::http::formatQuery ie UTF-8 oe UTF-8 q $t]
     }
 }
 



More information about the Tkabber-dev mailing list