ICU4C proposal: Add two U_FILE_SEP #defines to putil.h

George Rhoten <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <OF95C84DEC.EA2674DA-ON86256D9F.007175A7-88256D9F.0073238D@us.ibm.com>
Hi all,

I'd like to add two #defines to putil.h.  These changes are needed in 
order to allow the Unix makefiles to work with CygWin and Microsoft Visual 
C++ (not gcc).

#   define U_FILE_ALT_SEP_CHAR '/'
#   define U_FILE_ALT_SEP_STRING "/"

These are similar to the U_FILE_SEP_CHAR and U_FILE_SEP_STRING definitions 
in putil.h.  The fopen function on Windows normally allows both the 
forward slash and backslash to be present as file separators.  Some of our 
tools only accept backslash in the filenames because of how it parses some 
filenames.  I'd like to make it so that our tools can work with files 
specified either way.  This makes it easier when using GNU make and nmake 
with our tools on Windows.

Deadline for comments: Sep. 19, 2003.

George Rhoten
IBM Globalization Center of Competency/ICU  San José, CA, USA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.