On 2013-11-29 12:29, L. S. wrote:
> I've narrowed down the issue, which happens at line 461 in
> plug-in-menus.c in app/menus (cf. gimp-2.8.4):
>
>    g_tree_insert (entries, g_utf8_collate_key (key, -1), entry);
>
> The offending occurrence is g_utf8_collate_key which seems to return the
> same value ("<") for all the keys passed to it. This way g_tree_insert
> will always replace the previous entry.

YES!  THANK YOU!!!!!

> The long and clean way would be to sort this out either with the glib or
> with the cygwin crew.

The root cause is the use of __STDC_ISO_10646__ in glib/gunicollate.c, 
which was first defined in Cygwin 1.7.8, meaning the first release of 
glib2.0 built thereafter (somewhere in the 2.28.x series) was the 
trigger.  Unfortunately, Cygwin's wchar_t is only 16-bit, and so IIUC 
isn't fully compatible with the code in glib2.0 which was intended for 
32-bit wchar_t (e.g. Linux).

In the meantime, I have added a patch to glib2.0 to force usage of the 
fallback code path on Cygwin, and the GIMP menu is now being formed 
correctly; the necessary updates will be uploaded shortly.

Thanks for tracking this down,


Yaakov
Cygwin Ports


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to