Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/, /newedit/src/mixins/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/, /newedit/src/mixins/

Reply

Author limodou
Full name limodou
Date 2004-11-25 22:27:44 PST
Message User: limodou
Date: 04/11/25 22:27:44

Modified:
 /newedit/src/
  ChangeLog.txt
 /newedit/src/mixins/
  Import.py, ShellWindow.py

Log:
 fix shellwindow locale

File Changes:

Directory: /newedit/src/
========================

File [changed]: ChangeLog.txt
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/ChangeLo​g.txt?r1=1.121&r​2=1.122
Delta lines: +3 -0
-------------------
--- ChangeLog.txt 25 Nov 2004 12:44:23 -0000 1.121
+++ ChangeLog.txt 26 Nov 2004 06:27:43 -0000 1.122
@@ -1,3 +1,6 @@
+[2004/11/26]
+ShellWindow.py ÐÞÕýȡϵͳȱʡ±àÂëµÄ´¦Àí
+
 [2004/11/25]
 SnippetWindow.py ÐÞÕý´úÂëƬ¶Î´°¿Ú°´Å¥​״̬´¦Àí²»ÕýÈ·´íÎó
 common.py ÐÞÕýasciΪascii

Directory: /newedit/src/mixins/
===============================

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.63​&r2=1.64
Delta lines: +0 -0
-------------------
--- Import.py 25 Nov 2004 12:44:23 -0000 1.63
+++ Import.py 26 Nov 2004 06:27:44 -0000 1.64
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Import.py,v 1.63 2004/11/25 12:44:23 limodou Exp $
+# $Id: Import.py,v 1.64 2004/11/26 06:27:44 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------

File [changed]: ShellWindow.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/S​hellWindow.py?r1=1.5​&r2=1.6
Delta lines: +4 -4
-------------------
--- ShellWindow.py 14 Oct 2004 03:27:12 -0000 1.5
+++ ShellWindow.py 26 Nov 2004 06:27:44 -0000 1.6
@@ -19,14 +19,14 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: ShellWindow.py,v 1.5 2004/10/14 03:27:12 limodou Exp $
+# $Id: ShellWindow.py,v 1.6 2004/11/26 06:27:44 limodou Exp $
 
 import wx.py
 from wx.py.interpreter import Interpreter
 from wx.py import dispatcher
 import wx.stc
 import types
-import locale
+from modules import common
 
 class ShellWindow(wx.py.shell.Shell):
     def __init__(self, parent, mainframe):
@@ -46,7 +46,7 @@
 
         Replace line endings with OS-specific endings."""
         if not isinstance(text, types.UnicodeType):
- text = unicode(text, locale.getdefaultlocale()[1])
+ text = unicode(text, common.defaultencoding)
         text = self.fixLineEndings(text)
         self.AddText(text)
         self.EnsureCaretVisible()
@@ -64,7 +64,7 @@
         delete that last list."""
 
         if isinstance(command, types.UnicodeType):
- command = command.encode(local​e.getdefaultlocale()​[1])
+ command = command.encode(commo​n.defaultencoding)
         if not self.more:
             try: del self.commandBuffer[-1]
             except IndexError: pass




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/, /newedit/src/mixins/ limodou limodou 2004-11-25 22:27:44 PST
Messages per page: