Bug 76512 - Cairo won't compile on Android NDK
Summary: Cairo won't compile on Android NDK
Status: RESOLVED DUPLICATE of bug 70492
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.12.16
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 15:11 UTC by Tal
Modified: 2014-03-23 15:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Tal 2014-03-23 15:11:23 UTC
This is due to Android's imperfect support of Posix localization.

It's easy to fix, though, with a simple patch for "cairo-output-stream.c", in function "_cairo_dtostr":

#ifndef __ANDROID__
struct lconv *locale_data;
#endif

...

#ifndef __ANDROID__
locale_data = localeconv ();
decimal_point = locale_data->decimal_point;
#else
decimal_point = ".";
#endif
Comment 1 Uli Schlachter 2014-03-23 15:29:18 UTC

*** This bug has been marked as a duplicate of bug 70492 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.