[PATCH] Init locale

Aurélien Gâteau aurelien.gateau
Mar 24 Fév 09:39:22 CET 2009


---
 yokadi.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/yokadi.py b/yokadi.py
index 038c9ec..68169f7 100755
--- a/yokadi.py
+++ b/yokadi.py
@@ -7,6 +7,7 @@ Command line oriented, sqlite powered, todo list
 @license: GPLv3
 """
 
+import locale
 import os
 import sys
 import readline
@@ -124,6 +125,7 @@ class YokadiCmd(TaskCmd, ProjectCmd, KeywordCmd, BugCmd, ConfCmd, Cmd):
 
 
 def main():
+    locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
     parser = OptionParser()
 
     parser.add_option("-d", "--db", dest="filename",
-- 
1.5.4.4


--------------080402080302090608010709
Content-Type: text/x-diff;
 name="0003-Moved-code-from-AgeFormater-to-dateutils.formatTimeD.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0003-Moved-code-from-AgeFormater-to-dateutils.formatTimeD.pa";
 filename*1="tch"



Plus d'informations sur la liste de diffusion Ml-yokadi