groff
[Top][All Lists]
Advanced

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

Re: Two trivial questions


From: Ralph Corderoy
Subject: Re: Two trivial questions
Date: Thu, 28 Oct 2021 07:45:14 +0100

Hi Peter,

> > > Is it acceptable to use a comma for decimal fractions that are
> > > arguments to requests and macros (say .ps 12,5 instead of .ps
> > > 12.5) if a user's locale supports it?
...
> I asked because a document in Spanish I was reviewing used
> comma-separated decimal values for the dimensions of a pdf image.
> The decimal was sufficiently small that I couldn't discern visually
> whether it was being respected.  I expected groff to barf if the input
> were invalid, but it didn't.

Perhaps the code is doing the equivalent of atoi(3) and ignoring errors
rather than something more akin to strtol(3) with care to prime errno(3)
beforehand.

Sounds like a bug.

-- 
Cheers, Ralph.



reply via email to

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