gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r159420 - gump/trunk/python/gump/util/sync.py
Date Tue, 29 Mar 2005 20:19:08 GMT
Author: ajack
Date: Tue Mar 29 12:19:06 2005
New Revision: 159420

URL: http://svn.apache.org/viewcvs?view=rev&rev=159420
Log:
Hack attempt for http://issues.apache.org/jira/browse/GUMP-81

Modified:
    gump/trunk/python/gump/util/sync.py

Modified: gump/trunk/python/gump/util/sync.py
URL: http://svn.apache.org/viewcvs/gump/trunk/python/gump/util/sync.py?view=diff&r1=159419&r2=159420
==============================================================================
--- gump/trunk/python/gump/util/sync.py (original)
+++ gump/trunk/python/gump/util/sync.py Tue Mar 29 12:19:06 2005
@@ -25,6 +25,7 @@
 import shutil
 
 from gump import log
+from gump.util import getStringFromUnicode
 from gump.util.work import *
 from gump.util.file import *
 from gump.util.note import *
@@ -177,8 +178,8 @@
         #
         for name in names:
             try:    
-                srcname = os.path.join(src, name)
-                dstname = os.path.join(dst, name)
+                srcname = os.path.join(src, getStringFromUnicode(name))
+                dstname = os.path.join(dst, getStringFromUnicode(name))
             
             except UnicodeDecodeError, why:
                 message = 'Unicode Error. Can\'t copy [%s] in [%s] to [%s]: [%s]' % (`name`,
`src`, `dst`, str(why))



Mime
View raw message