2010/5/12 Steve Borho <[email protected]> > On Wed, May 12, 2010 at 2:19 PM, Michael Jay Lippert > <[email protected]> wrote: > > Just thought I'd report this issue, it's not that hard to workaround by > > deleting the files from the Windows Explorer. > > > > This is on MS Windows XP 5.1.2600 Service Pack 3 using TortoiseHg > (version > > 1.0.1) with Mercurial-1.5.1, Python-2.6.4, PyGTK-2.16.0, GTK-2.16.6 > > > > Some of our application's tests create (and read) files with "unusual" > > characters that the OS/file system supports. > > > > This is an example file name that gets an error when I select it and try > to > > delete unversioned (from the commit dialog): > > Save_Open_create_worksheet_and_save_1_$#%^φOE(c)&&.MCDX > > > > Those characters after the ^ are Greek Small Letter Phi (U+03c6), Latin > > Capital Ligature Oe (U+0152) & Copyright Sign (U+00a9). > > > > The error says: > > Delete Errors > > > > [Error 2] The system cannon find the file specified: > > > 'D:\Development\PrimeHg\Tests/Save_Open/Save_Open_create_worksheet_and_save_1_$#%^f\x8c\xa9&&.MCDX' > > > > Just so you know, I haven't figured out how to delete these files from > the > > command line either other than by using wildcards. > > For the record, we're essentially calling os.unlink() on the filename > that Mercurial reports to us. And Mercurial in turn gets the filename > from standard os module calls. So this is kind of an argument between > Python and Windows. > > Perhaps switching to Python's unicode file APIs would help, but that > is not likely to happen any time soon within Mercurial. > > Ah I see. Well that sounds reasonable. It's nice to know that the underlying cause is an issue w/ Python <-> Windows communication, and I certainly don't think this is something worth any effort trying to work around.
I guess it may eventually get fixed if the Python/Windows communications gets fixed, or as you said if mercurial changes the Python API's they're using. I wasn't sure if there was some minor escaping/unescaping that was supposed to happen that wasn't because it hadn't been noticed before, so I thought it was worth mentioning. Thanks again for the info, Mike
------------------------------------------------------------------------------
_______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

