GNOME Bugzilla – Bug 750017
tests test-layout and testiter fail on OS X in pango_core_text_fontset_new
Last modified: 2015-05-30 20:06:58 UTC
Created attachment 304134 [details] test suite log In pango 1.37.0 on OS X 10.10.4, two tests -- test-layout and testiter -- fail in strlen called from CFStringCreateWithCString called from pango_core_text_fontset_new. That suggests to me that you might be calling CFStringCreateWithCString with NULL instead of a pointer to a valid string.
Created attachment 304135 [details] test-layout crash log
Created attachment 304136 [details] testiter crash log
Thanks for the detailed report -- I will have a look this weekend. It seems related to the recent change related to cascading. It's strange that my testing with GTK+ tests didn't turn up these problems.
Created attachment 304287 [details] [review] patch Turns out key->language is in some cases NULL, in this case we cannot set a language preference list for CoreText. After this patch, testiter passes, but test-layout still fails. Investigating.
Created attachment 304288 [details] [review] patch: handle locale set through environment variables for testing This patch makes language detection work similar as on Windows: first check environment variables, then use the platform-native API. After applying this patch all unit tests pass on OS X.
See if you can reuse pango_language_get_default().
Oh my bad. Looks good to me. Please push.
Thanks, pushed.