chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1008: file unit treats slash and backslash as path s


From: Chicken Trac
Subject: [Chicken-janitors] #1008: file unit treats slash and backslash as path separators even on systems where they aren't
Date: Wed, 17 Apr 2013 20:21:29 -0000

#1008: file unit treats slash and backslash as path separators even on systems
where they aren't
----------------------------------------------------------------+-----------
 Reporter:  ckeen                                               |       Owner:  
       
     Type:  defect                                              |      Status:  
new    
 Priority:  major                                               |   Milestone:  
someday
Component:  core libraries                                      |     Version:  
4.8.x  
 Keywords:  files unit dir separators all suck even on windows  |  
----------------------------------------------------------------+-----------
 The file unit treats #/ and #\\ as file separators, for example in
 '''make-pathname''':

 {{{
 CHICKEN
 (c) 2008-2013, The Chicken Team
 (c) 2000-2007, Felix L. Winkelmann
 Version 4.8.2 (rev e1e5193)
 openbsd-unix-gnu-x86 [ manyargs dload ptables ]
 compiled 2013-04-16 on necronomicon.my.domain (OpenBSD)

 #;1> (use files)
 ; loading /home/ckeen/chickens/master/lib/chicken/7/files.import.so ...
 ; loading library files ...
 #;2> (make-pathname "foo/bar" "\\")
 "foo/bar/"
 }}}

 In this example the totally valid unix file/directory name backslash "\"
 is stripped by make-pathname.

 This begs the question of the file unit's purpose:

  * should it use the current system's separator?
  * should it use some other configurable separator?
  * should it use the target's systems separator (cross-chickens)?
  * all of the above depending on some API?

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1008>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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