On Fri, Mar 15, 2013 at 9:38 AM, Christian Kellermann <ck...@pestilenz.org> wrote: > * Florian Zumbiehl <fl...@florz.de> [130315 06:54]: >> Make csi's dirseparator? not flag backslashes as path component separators on >> non-windows, in particular so that chop-separator won't corrupt directory >> names >> ending in backslashes.
In Win32 both types of slashes are valid dir separators. So I would do something like that: (define (dirseparator? c) - (or (char=? c #\\) (char=? c #\/))) + (or (char=? c #\/) (and ##sys#windows-platform (char=? c #\\)))) Regards, Michele _______________________________________________ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers