>> > 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. > 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. Werner