On May 17, 2006, at 2:28 PM, Paul McNett wrote:

Looking at the code, I'm not sure why we'd ever want to replace occurances of "//" with "////".

Because double backslashes (yes, I saw your correction) were being converted from XML as single backslashes, as you'd expect. But this was causing problems with Windows bass-ackwards pathing, especially when one of the components of the path began with a meta character such as 'n' or 't'. A path such as:

c:\\somedir\\new.db

...was being unpacked to:

c:\somedir\new.db

...and Python was interpreting this as:

c:\somedir
ew.db

I don't have the time right now to play around with this, since I've got my laptop in Ubuntu mode instead of Windows. If you do any testing, make sure to test with files beginning with lower-case 'n' or 't'.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to