This is the mail archive of the cygwin-developers mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Oct 15 01:00, Charles Wilson wrote:>> [stuff]
Sorry, I meant localename.c. Almost everything for Win32 is done for Cygwin as well. Plus ignoring C.UTF-8 explicitly just on Cygwin. That's cruel.
No. Now that cygintl-8.dll has been published with an added interface (libintl_setlocale) I can't remove that new symbol without breaking any apps compiled in the meantime.
libintl_setlocale is only defined if ENABLE_RELOCATABLE is defined? That's not immediately visble from ther sources.
However, I had already come to the conclusion that simply applying Bruno's "cheap vs. expensive" fix from CVS will do, for now. This doesn't require any new cygwin APIs. The new API is only an attempt to speed up "expensive" relocation (which cygwin's official packages will never need to do) while staying at least somewhat unixy/cygwiny, rather than calling the w32api.
Cool! That's the solution then.
After we told Bruno to not use any windowsisms? Sure, it's a lot simpler -- but it violates our recommendations for cygwin clients.
So in turn, there's no practical difference between
#ifdef __CYGWIN__ cygwin_internal (CW_GET_MODULE_PATH_FOR_ADDR, addr, buf, sizeof (buf)) shared_library_fullname = strdup (buf); #endif
and
#ifdef __CYGWIN__ GetModuleFileNameW (module_handle, buf, sizeof (buf))) shared_library_fullname = (char *) cygwin_create_path (CCP_WIN_W_TO_POSIX, buf); #endif
In both cases you have to use a Cygwinism and you have to guard the code using #ifdef __CYGWIN__.
But making "expensive" relocation less expensive doesn't have to be solved this very minute.
Actually, since we have two types of relocation anyway, cheap and expensive, why isn't it enough to have an expensive relocation using the maps file?
Somehow I missed the numbers. How slow is accessing the maps file in comparison?
I don't think it makes sense to add a cygwin_internal call for this functionality.
-- Chuck
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |