> Date: Sat, 08 Nov 2014 15:25:17 +0100 (CET) > Cc: [email protected] > From: Werner LEMBERG <[email protected]> > > >> > One possible solution to this is to convert all backslashes to > >> > forward slashes '/' when writing the .lf directive. > > > > Is there a good place to put the function that will do this? > > I suggest `libs/libgroff/lf.cpp'. > > > Or should I just have it in each place that needs it? > > Whatever you think is more appropriate.
OK, I'll do one of these. > > the issue here is not canonicalization of file names, but rather > > conversion of each backslash in a file name to a forward slash. > > This can be handled by a simple loop. > > > > Or did you mean something else? > > I mean exactly this. However, even such apparently easy tasks can > have pitfalls, and gnulib routines normally take care of them already. > My thought was that this possibly would save you some work. It is a rare program that really needs to have file names with only forward slashes; the vast majority can use both formats. So gnulib doesn't have a good reason to include this in its functions.
