chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH 1/4] csi dirseparator?: don't treat backsla


From: Michele La Monaca
Subject: Re: [Chicken-hackers] [PATCH 1/4] csi dirseparator?: don't treat backslash as dir separator on non-windows
Date: Fri, 15 Mar 2013 10:48:51 +0100

On Fri, Mar 15, 2013 at 9:38 AM, Christian Kellermann
<address@hidden> wrote:
> * Florian Zumbiehl <address@hidden> [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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]