[Gnucash-changes] check_data_type, backend configuration and gettext

David Hampton hampton-gnucash at rainbolthampton.net
Tue Sep 6 23:18:49 EDT 2005

On Tue, 2005-09-06 at 09:34 -0400, Derek Atkins wrote:
> I see no reason not to use the code in core-utils in the backends.
> That's what core-utils is there for.

Why isn't this code in lib/libc?  That's where code should be that
provides functionality that may be missing from the underlying system.

As I see it, the following should occur:

1) The test from src/core-utils/core-utils.h requiring either setenv()
or putenv() should be moved into configure.  Developers should never get
past configure if their platform doesn't provide one of these two

2) The rest of the file src/core-utils/core-utils.h can be deleted.

3) The file src/core-utils/core-utils.c should be moved to
lib/libc/setenv.c.  It should provide the setenv and unsetenv functions
on platforms where HAVE_SETENV is false.  (The current functions can
just be renamed.)

4) Gnucash should call setenv/unsetenv.


More information about the gnucash-devel mailing list