bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Separator problem


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Separator problem
Date: Sun, 07 Oct 2012 12:41:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Dmitry Bogatov <address@hidden> writes:

> In my previous patch(not applied yet), I refactored some code,
> but did not fixed mistake in this line:
>
>   sprintf (path, "%s/%s", home, NETRC_FILE_NAME);
>
> Unfortunately, we do not live in a perfect world, and there is OS,
> where separator is different. There is already code for getting
> separator for DOS-like systems, based on parsing `argv0'.
> But it introduce static variables and other ugly things.
>
> Any other, more beatiful solution? I find strange, that GNU project
> deals with this OS zoo, and do not have public portability layer.

grepping in the gnulib code I can see: DIRECTORY_SEPARATOR in dirname.h.
Probably we will need to add a dependency to the "dirname" module.

Giuseppe



reply via email to

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