groff
[Top][All Lists]
Advanced

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

Re: [Groff] Strange error messages from Groff 1.22.3


From: Eli Zaretskii
Subject: Re: [Groff] Strange error messages from Groff 1.22.3
Date: Sat, 08 Nov 2014 16:48:07 +0200

> Date: Sat, 08 Nov 2014 15:25:17 +0100 (CET)
> Cc: address@hidden
> From: Werner LEMBERG <address@hidden>
> 
> >> > 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.



reply via email to

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