Re: [racket] reliable path comparison?

2010-10-21 Thread Robby Findler
Normal-case-path? On Thursday, October 21, 2010, Danny Yoo d...@cs.wpi.edu wrote: On Thu, Oct 21, 2010 at 11:23 AM, scouic sco...@gmail.com wrote: Hi, i think that the problem is the \ character, because this works : #lang racket (equal? (regexp-replace* (path-string (build-path C:\\))

Re: [racket] reliable path comparison?

2010-10-21 Thread Joe Marshall
On Wed, Oct 20, 2010 at 7:20 PM, Danny Yoo d...@cs.wpi.edu wrote: I'm trying to compare two paths for equality; I misread normalize-path and didn't realize that it does not do case folding, so that on Windows,   (equal? (build-path C:\\)              (build-path c:\\)) returns false.  

Re: [racket] reliable path comparison?

2010-10-21 Thread Eli Barzilay
5 minutes ago, Joe Marshall wrote: On Wed, Oct 20, 2010 at 7:20 PM, Danny Yoo d...@cs.wpi.edu wrote: I'm trying to compare two paths for equality; I misread normalize-path and didn't realize that it does not do case folding, so that on Windows,   (equal? (build-path C:\\)              

Re: [racket] reliable path comparison?

2010-10-21 Thread Danny Yoo
BTW, the relevant racket function for the first part is `file-or-directory-identity'. Ah! This is exactly what I need! Thanks! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] reliable path comparison?

2010-10-20 Thread Danny Yoo
I'm trying to compare two paths for equality; I misread normalize-path and didn't realize that it does not do case folding, so that on Windows, (equal? (build-path C:\\) (build-path c:\\)) returns false. What's the right way to compare paths for equality? As a related

Re: [racket] reliable path comparison?

2010-10-20 Thread Eli Barzilay
Four minutes ago, Danny Yoo wrote: I'm trying to compare two paths for equality; I misread normalize-path and didn't realize that it does not do case folding, so that on Windows, (equal? (build-path C:\\) (build-path c:\\)) returns false. What's the right way to compare

Re: [racket] reliable path comparison?

2010-10-20 Thread Danny Yoo
I'm trying to compare two paths for equality; I misread normalize-path and didn't realize that it does not do case folding, so that on Windows,    (equal? (build-path C:\\)               (build-path c:\\)) returns false.  What's the right way to compare paths for equality? IIRC, there

Re: [racket] reliable path comparison?

2010-10-20 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/20/2010 08:38 PM, Danny Yoo wrote: Yikes. Ok, is there a way to tell if a filesystem root is case-sensitive or not? Use a POSIX compatible operating system. Bam, your filesystem root is case-sensitive. -BEGIN PGP SIGNATURE- Version:

Re: [racket] reliable path comparison?

2010-10-20 Thread YC
On Wed, Oct 20, 2010 at 8:38 PM, Danny Yoo d...@cs.wpi.edu wrote: IIRC, there was no right way -- I think that on windows you can have some drives be case-sensitive and some are not. Yikes. Ok, is there a way to tell if a filesystem root is case-sensitive or not? I am not aware of