Remote Share directory listing chokes when remote filenames contain unicode characters

Bug #737828 reported by Jeremy Jongsma on 2011-03-18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Jeremy Jongsma

Bug Description

When browsing remote shares, if a filename contains a non-ascii unicode character, the listing chokes.

Sample error:

Could not retrieve directory listing

Changed in downpour:
assignee: nobody → Jeremy Jongsma (jeremy-jongsma)
j (j-sassinak) wrote :

Assuming that by "Remote Share" you are talking about the page you get to by clicking on "Media Browser" this patch should fix it and various other problems that I had with displaying unicode.

Jeremy Jongsma (jeremy-jongsma) wrote :

Thanks j, I'll try it out this week.

I'm not much of a unicode expert and that fact the Twisted doesn't deal with unicode well natively has made it a bit of a pain in the butt.

j (j-sassinak) wrote :

I think that more than just being a problem with twisted, it's a problem with how well Python 2.x handles unicode. I hear that Python 3.x does a lot better with it though.

Basically it was just trial and error for getting it to work. Hopefully I didn't do something that just worked on my machine but will fail elsewhere.

Jeremy Jongsma (jeremy-jongsma) wrote :

Committed, there's probably a few other places that need this yet too, when I get some time I'll split off the safe_unicode stuff into a shared module.

Changed in downpour:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers