On Thu, Feb 19, 2004 at 09:21:58AM +0000, Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: > > Georg> What is difficult: Setting the environment variable, or > > Georg> determine its value? I guess the latter should be doable > > Georg> without too much pain with the existing path conversion > > Georg> routines? > > > > On unix, this is a ":" delimited list of directories. On windows, > > depending on whether the program uses win32 paths or unix path, it > > can be a ";" delimited list of directories. > > Is semi-colon an allowable character in a unix path?
In a directory name? Yes. [Everything except a '/', although some funny chars will produce funny results...] > Similarly, is colon an allowable character in the win32 path? Not sure. > I think that the answer to these questions is "no" and "no", which > means that we could use boost::regex to split the list, using "[:;]" > as the delimiter. Not 100% safe... Andre'