[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
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., (continued)
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Felix, 2013/03/16
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Peter Bex, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., John Cowan, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Mario Domenech Goulart, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., John Cowan, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Mario Domenech Goulart, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., John Cowan, 2013/03/19
- Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Jim Ursetto, 2013/03/19
Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path., Jim Ursetto, 2013/03/15
Re: [Chicken-hackers] [PATCH 1/4] csi dirseparator?: don't treat backslash as dir separator on non-windows, Christian Kellermann, 2013/03/15
Re: [Chicken-hackers] [PATCH 1/4] csi dirseparator?: don't treat backslash as dir separator on non-windows, Peter Bex, 2013/03/15