Did i mention I hate Unicode? well I do. But i just commited a fix. I tested with the Char you had a problem with and now it seems to work for me. But due to vagaries in Unicode i dare not say more than that. Try again please with a cvs dated may 15 or later,
-- Mike Ruelle <[EMAIL PROTECTED]> On Mon, 2004-03-22 at 14:04, Robert Winder wrote: > hi, > > Mike thanks for fixing the multiple dir prob in library.rpy but there > is still an unicode prob one level deeper. > > Entering a mp3 dir with some é chars results in > > > web.Server Traceback (most recent call last): > exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 4: > ordinal not in range(128) > > /usr/lib/python2.3/site-packages/twisted/web/server.py, line 159 in process > 157 try: > 158 resrc = self.site.getResourceFor(self) > 159 self.render(resrc) > 160 except: > Selfsite twisted.web.server.Site instance @ 0x40c8638c > <twisted.web.server.Site instance at 0x40c8638c> > > Localsresrc __builtin__.LibraryResource instance @ 0x40fef88c > <__builtin__.LibraryResource instance at 0x40fef88c> > self twisted.web.server.Request instance @ 0x4106068c > <GET /library.rpy?media=music&dir=/media/audio/Jazz%20Tunes HTTP/1.1> > > /usr/lib/python2.3/site-packages/twisted/web/server.py, line 166 in render > 164 def render(self, resrc): > 165 try: > 166 body = resrc.render(self) > 167 except UnsupportedMethod, e: > Localsresrc __builtin__.LibraryResource instance @ 0x40fef88c > <__builtin__.LibraryResource instance at 0x40fef88c> > self twisted.web.server.Request instance @ 0x4106068c > <GET /library.rpy?media=music&dir=/media/audio/Jazz%20Tunes HTTP/1.1> > > GlobalsUnsupportedMethod <class twisted.web.server.UnsupportedMethod at 0x40c754ac> > > /usr/local/freevocvs/src/www/web_types.py, line 137 in render > 135 return '<h1>401 Authentication required</h1>' > 136 else: > 137 return self._render(request) > 138 > Localsself __builtin__.LibraryResource instance @ 0x40fef88c > <__builtin__.LibraryResource instance at 0x40fef88c> > request twisted.web.server.Request instance @ 0x4106068c > <GET /library.rpy?media=music&dir=/media/audio/Jazz%20Tunes HTTP/1.1> > > /usr/local/freevocvs/src/www/htdocs/library.rpy, line 410 in _render > 408 # get me the directories to output > 409 directorylist = util.getdirnames(action_dir) > 410 for mydir in directorylist: > 411 mydir = Unicode(mydir) > Localsdirectories List instance @ 0x40fef74c > ('JAZZ', '/media/audio/Jazz Tunes') > ('POP', '/media/audio/Pop Tunes') > ('INTERNET-RADIO', '/media/audio/Inet radio') > action_dir u'/media/audio/Jazz Tunes' > > Globalsutil <module 'util' from '/usr/local/freevocvs/src/util/__init__.pyo'> > > /usr/local/freevocvs/src/util/fileops.py, line 90 in getdirnames > 88 > 89 try: > 90 dirnames = [ dirname + dname for dname in os.listdir(dirname) if \ > 91 os.path.isdir(dirname + dname) and \ > Localsdname 'Esbj\x94rn Svensson Trio - Plays Monk' > dirname u'/media/audio/Jazz Tunes/' > > Globalsos <module 'os' from '/usr/lib/python2.3/os.pyo'> > > > /Robert > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Freevo-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/freevo-users ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users