[Tkabber-dev] r746 - in trunk/tkabber-plugins: . checkers chess ejabberd georoster latex osd reversi traffic whiteboard

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Fri Oct 6 00:48:27 MSD 2006


Author: sergei
Date: 2006-10-06 00:48:19 +0400 (Fri, 06 Oct 2006)
New Revision: 746

Modified:
   trunk/tkabber-plugins/ChangeLog
   trunk/tkabber-plugins/checkers/checkers.tcl
   trunk/tkabber-plugins/chess/chess.tcl
   trunk/tkabber-plugins/ejabberd/ejabberd.tcl
   trunk/tkabber-plugins/georoster/georoster.tcl
   trunk/tkabber-plugins/latex/latex.tcl
   trunk/tkabber-plugins/osd/osd.tcl
   trunk/tkabber-plugins/reversi/reversi.tcl
   trunk/tkabber-plugins/traffic/traffic.tcl
   trunk/tkabber-plugins/whiteboard/whiteboard.tcl
Log:
	* checkers/checkers.tcl, chess/chess.tcl, ejabberd/ejabberd.tcl,
	  georoster/georoster.tcl, latex/latex.tcl, reversi/reversi.tcl,
	  traffic/traffic.tcl, whiteboard/whiteboard.tcl: Removed
	  changing of system encoding when loading translated messages
	  because msgcat itself uses UTF-8.

	* osd/osd.tcl: Removed encoding configuring of osdcat pipe
	  because it is a system encoding by default.


Modified: trunk/tkabber-plugins/ChangeLog
===================================================================
--- trunk/tkabber-plugins/ChangeLog	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/ChangeLog	2006-10-05 20:48:19 UTC (rev 746)
@@ -1,5 +1,14 @@
 2006-10-05  Sergei Golovan  <sgolovan at nes.ru>
 
+	* checkers/checkers.tcl, chess/chess.tcl, ejabberd/ejabberd.tcl,
+	  georoster/georoster.tcl, latex/latex.tcl, reversi/reversi.tcl,
+	  traffic/traffic.tcl, whiteboard/whiteboard.tcl: Removed
+	  changing of system encoding when loading translated messages
+	  because msgcat itself uses UTF-8.
+
+	* osd/osd.tcl: Removed encoding configuring of osdcat pipe
+	  because it is a system encoding by default.
+
 	* whiteboard/msgs/uk.msg: Added Ukrainian translation (thanks
 	  to Mykola Dzham).
 

Modified: trunk/tkabber-plugins/checkers/checkers.tcl
===================================================================
--- trunk/tkabber-plugins/checkers/checkers.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/checkers/checkers.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -5,11 +5,7 @@
 namespace eval checkers {
     variable scriptdir [file dirname [info script]]
 
-    set sysenc [encoding system]
-    encoding system utf-8
     ::msgcat::mcload [file join $scriptdir msgs]
-    encoding system $sysenc
-    unset sysenc
 
     variable square_size 48
     variable line_width 1

Modified: trunk/tkabber-plugins/chess/chess.tcl
===================================================================
--- trunk/tkabber-plugins/chess/chess.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/chess/chess.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -5,11 +5,7 @@
 namespace eval chess {
     set scriptdir [file dirname [info script]]
 
-    set sysenc [encoding system]
-    encoding system utf-8
     ::msgcat::mcload [file join $scriptdir msgs]
-    encoding system $sysenc
-    unset sysenc
 
     variable square_size 48
     variable line_width 1

Modified: trunk/tkabber-plugins/ejabberd/ejabberd.tcl
===================================================================
--- trunk/tkabber-plugins/ejabberd/ejabberd.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/ejabberd/ejabberd.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -2,11 +2,7 @@
 
 package require msgcat
 
-set sysenc [encoding system]
-encoding system utf-8
 ::msgcat::mcload [file join [file dirname [info script]] msgs]
-encoding system $sysenc
-unset sysenc
 
 namespace eval ejabberd {
     custom::defvar ejabberd_server_list {} \

Modified: trunk/tkabber-plugins/georoster/georoster.tcl
===================================================================
--- trunk/tkabber-plugins/georoster/georoster.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/georoster/georoster.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -3,11 +3,7 @@
 package require msgcat
 package require http 2
 
-set sysenc [encoding system]
-encoding system utf-8
 ::msgcat::mcload [file join [file dirname [info script]] msgs]
-encoding system $sysenc
-unset sysenc
 
 option add *GeoRoster.cityforeground green3 widgetDefault
 

Modified: trunk/tkabber-plugins/latex/latex.tcl
===================================================================
--- trunk/tkabber-plugins/latex/latex.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/latex/latex.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -8,11 +8,7 @@
 namespace eval latex {
     variable scriptdir [file dirname [info script]]
 
-    set sysenc [encoding system]
-    encoding system utf-8
     ::msgcat::mcload [file join $scriptdir msgs]
-    encoding system $sysenc
-    unset sysenc
 
     variable tmpdir [pwd]
     variable null ""

Modified: trunk/tkabber-plugins/osd/osd.tcl
===================================================================
--- trunk/tkabber-plugins/osd/osd.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/osd/osd.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -30,7 +30,7 @@
     }
     debugmsg osd $command
     set pipe [open $command w]
-    fconfigure $pipe -buffering line -encoding [encoding system]
+    fconfigure $pipe -buffering line
 }
 
 proc ::osd::try_write {text} {

Modified: trunk/tkabber-plugins/reversi/reversi.tcl
===================================================================
--- trunk/tkabber-plugins/reversi/reversi.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/reversi/reversi.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -5,11 +5,7 @@
 namespace eval reversi {
     variable scriptdir [file dirname [info script]]
 
-    set sysenc [encoding system]
-    encoding system utf-8
     ::msgcat::mcload [file join $scriptdir msgs]
-    encoding system $sysenc
-    unset sysenc
 
     variable square_size 48
     variable line_width 1

Modified: trunk/tkabber-plugins/traffic/traffic.tcl
===================================================================
--- trunk/tkabber-plugins/traffic/traffic.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/traffic/traffic.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -5,11 +5,7 @@
 
 namespace eval traffic {
 
-    set sysenc [encoding system]
-    encoding system utf-8
     ::msgcat::mcload [file join [file dirname [info script]] msgs]
-    encoding system $sysenc
-    unset sysenc
 
     array set stats {}
     array set jids {}

Modified: trunk/tkabber-plugins/whiteboard/whiteboard.tcl
===================================================================
--- trunk/tkabber-plugins/whiteboard/whiteboard.tcl	2006-10-05 18:50:20 UTC (rev 745)
+++ trunk/tkabber-plugins/whiteboard/whiteboard.tcl	2006-10-05 20:48:19 UTC (rev 746)
@@ -4,11 +4,7 @@
 
 package require msgcat
 
-set sysenc [encoding system]
-encoding system utf-8
 ::msgcat::mcload [file join [file dirname [info script]] msgs]
-encoding system $sysenc
-unset sysenc
 
 namespace eval wb {
     set id_base [pid]	;# used in proc create_id



More information about the Tkabber-dev mailing list