Hi Pino,
> I decided to move xstrtol_fatal() to an own xstrtol-error module.
>
> This has the nice advantage to reduce the footprint a lot
That's a good move. Great!
> There are only two potential downsides:
> 1) users of the xstro* modules may use xstrtol_fatal() right now
Your mitigation,
Christian Biesinger wrote:
> Testcase:
> #include "gnulib/config.h"
> #include // optional
> #include
>
> int main() {
> }
Let me add more C++ tests to gnulib, so that such errors become apparent
when compiling a testdir created with the option 'with-c++-tests'.
2019-12-05 Bruno Haible
Tim Rühsen wrote:
> there seems to be some kind of inconsistency.
>
>
> $ LANGUAGE=de cp
> cp: Fehlender Dateioperand
> „cp --help“ liefert weitere Informationen.
>
>
> $ LANGUAGE=de wget
> wget: URL fehlt
> Aufruf: wget [OPTION]... [URL] …
>
> »wget --help« gibt weitere Informationen.
>
>
On 12/5/19 7:12 AM, Wes Hurd wrote:
Smart quotes are dangerous for programmers and technical users
Sure, but *all* quotes are dangerous for programmers and technical
users. :-)
If you don’t want smart quotes, you can set LC_ALL=C in your environment.
On 12/5/19 4:12 PM, Wes Hurd wrote:
> Hi,
>
> It seems GNUlib quote encoding goes to Unicode smart quotes, which causes
> command-line program output to be in smart quotes.
> Smart quotes are dangerous for programmers and technical users, and should
> be avoided in program output.
>
> Originally
Hi,
It seems GNUlib quote encoding goes to Unicode smart quotes, which causes
command-line program output to be in smart quotes.
Smart quotes are dangerous for programmers and technical users, and should
be avoided in program output.
Originally noticed with wget -
The xstrtol module provides a xstrtol_fatal function which uses other
modules suitable mostly for command line handling (e.g. gettext,
getopt), and that are completely unused when using only xstrto*
functions. Furthermore, xstrtol_fatal is used only in the xstrtol-tests
(within gnulib itself).
As
Hi,
I noticed that using the xstrtol (or any of the other xstrto* modules
using it) drags a lot of other gnulib modules, 39 more to be exact
including dirname-lgpl, error, errno, getopt-gnu, msvc-*, etc.
The reason for this are:
- xstrtol.h includes getopt.h, which in turns requires getopt-gnu,