gnome-schedule r1068 - in trunk: . src



Author: gauteh
Date: Fri Feb  1 10:59:55 2008
New Revision: 1068
URL: http://svn.gnome.org/viewvc/gnome-schedule?rev=1068&view=rev

Log:
Bug 513330: Applied patch from Frank Arnold fixing wrong locale categori (LC_ALL -> LC_TIME)

Modified:
   trunk/ChangeLog
   trunk/src/at.py

Modified: trunk/src/at.py
==============================================================================
--- trunk/src/at.py	(original)
+++ trunk/src/at.py	Fri Feb  1 10:59:55 2008
@@ -71,7 +71,7 @@
 				pass
 				# FAILED TO CREATE DATADIR
 				
-		self.currentlocale = locale.getlocale (locale.LC_ALL)
+		self.currentlocale = locale.getlocale (locale.LC_TIME)
 		
 	def set_rights(self,user,uid,gid, ud):
 		self.user = user
@@ -85,10 +85,10 @@
 		return "at"
 
 	def standard_locale (self):
-		locale.setlocale (locale.LC_ALL, 'C')
+		locale.setlocale (locale.LC_TIME, 'C')
 	
 	def restore_locale (self):
-		locale.setlocale (locale.LC_ALL, self.currentlocale)
+		locale.setlocale (locale.LC_TIME, self.currentlocale)
 		
 	def parse (self, line, output = True):
 		if (output == True):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]