Update of /cvsroot/freevo/freevo/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10190/src/util
Modified Files: misc.py vfs.py Log Message: Fixes some bugs related to handling unicode internally. NOTE: Many of the bugs are related to using str() everywhere, so please stop doing that. Index: misc.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/util/misc.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** misc.py 1 Feb 2004 17:06:12 -0000 1.21 --- misc.py 5 Feb 2004 05:44:26 -0000 1.22 *************** *** 11,14 **** --- 11,18 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.22 2004/02/05 05:44:26 gsbarbieri + # Fixes some bugs related to handling unicode internally. + # NOTE: Many of the bugs are related to using str() everywhere, so please stop doing that. + # # Revision 1.21 2004/02/01 17:06:12 dischi # speedup *************** *** 282,286 **** def get_bookmarkfile(filename): myfile = vfs.basename(filename) ! myfile = config.FREEVO_CACHEDIR + "/" + str(myfile) + '.bookmark' return myfile --- 286,290 ---- def get_bookmarkfile(filename): myfile = vfs.basename(filename) ! myfile = config.FREEVO_CACHEDIR + "/" + myfile + '.bookmark' return myfile Index: vfs.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/util/vfs.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** vfs.py 5 Feb 2004 02:52:26 -0000 1.14 --- vfs.py 5 Feb 2004 05:44:26 -0000 1.15 *************** *** 17,20 **** --- 17,24 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.15 2004/02/05 05:44:26 gsbarbieri + # Fixes some bugs related to handling unicode internally. + # NOTE: Many of the bugs are related to using str() everywhere, so please stop doing that. + # # Revision 1.14 2004/02/05 02:52:26 gsbarbieri # Handle filenames internally as unicode objects. *************** *** 223,228 **** directory = unicode( directory, encoding ) except Exception, e: ! print "ERROR:" + \ ! "Could not convert %s to unicode using \"%s\" encoding: %s" % ( repr( directory ), encoding, e ) if include_dot_files: --- 227,234 ---- directory = unicode( directory, encoding ) except Exception, e: ! _debug_( "ERROR: " + \ ! "Could not convert %s to unicode using \"%s\" encoding: %s" % \ ! ( repr( directory ), encoding, e ) ! ) if include_dot_files: *************** *** 246,251 **** fname = unicode( fname, encoding ) except Exception, e: ! print "ERROR:" + \ ! "Could not convert %s to unicode using \"%s\" encoding: %s" % ( repr( fname ), encoding, e ) f = overlay + fname --- 252,259 ---- fname = unicode( fname, encoding ) except Exception, e: ! _debug_( "ERROR: " + \ ! "Could not convert %s to unicode using \"%s\" encoding: %s" % \ ! ( repr( fname ), encoding, e ) ! ) f = overlay + fname ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog