[Geany-devel] Convert Unix path separators on Windows when opening documents

Dimitar Zhekov dimitar.zhekov at xxxxx
Mon Nov 7 18:23:18 UTC 2011


commit 13597df9dffdcbd3091aac224d20b1924c563bde
Author: Nick Treleaven <nick.treleaven at btinternet.com>

> [...] Windows does not allow filenames to contain Unix path
> separators so this should be safe.

Windows treats '/' as directory separator starting with DOS 5.0 IIRC.
100% safe to convert, since a directory separator can never be part of
the file name.

It would be good to convert any '/' in the messages window filenames
too, for document_find_*() to work properly. OTOH, it may be easier to
write a real utils_filenamecmp() which assumes '/' == '\\' under Win~1.

-- 
E-gards: Jimmy



More information about the Devel mailing list