Bug 76512

Summary: Cairo won't compile on Android NDK
Product: cairo Reporter: Tal <tal.liron>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.12.16   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.