bug-gnu-utils
[Top][All Lists]
Advanced

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

Suggested patch for libintl (gettext 0.10.40) on Win32


From: Bruno Haible
Subject: Suggested patch for libintl (gettext 0.10.40) on Win32
Date: Mon, 24 Sep 2001 15:08:11 +0200 (CEST)

Tor Lillqvist writes:

> Here are some suggested patches to make libintl behave better on
> Windows. My main concern is that I don't like hard-coded paths in
> DLLs.

I'm willing to discuss this. But the implementation you propose is too
hairy.

* Querying the registry is totally unacceptable. It contributes to
system instability. Furthermore, in the implementation you propose,
it is impossible to use two different versions of some package
simultaneously, installed in different directories.

* Use of "libintl-%d.dll" is too fragile. Some people who create gettext
binaries will want to use different conventions, e.g. rename the dll
to intl.dll or so. Please use a more tolerant technique, for example
list all the DLLs used by the process, then see using VirtualQuery
in which one the code being executed lies. Maybe a WinMain() function
in the DLL can help also?

Bruno



reply via email to

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