[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo-bugs
Subject:    [cairo-bugs] [Bug 76512] New: Cairo won't compile on Android NDK
From:       bugzilla-daemon () freedesktop ! org
Date:       2014-03-23 15:11:23
Message-ID: bug-76512-4039 () http ! bugs ! freedesktop ! org/
[Download RAW message or body]

--1395587485.f730Ea11.25756
Date: Sun, 23 Mar 2014 15:11:25 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

https://bugs.freedesktop.org/show_bug.cgi?id=76512

          Priority: medium
            Bug ID: 76512
          Assignee: chris@chris-wilson.co.uk
           Summary: Cairo won't compile on Android NDK
        QA Contact: cairo-bugs@cairographics.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: tal.liron@gmail.com
          Hardware: Other
            Status: NEW
           Version: 1.12.16
         Component: general
           Product: cairo

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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

--1395587485.f730Ea11.25756
Date: Sun, 23 Mar 2014 15:11:25 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"

<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Cairo won't compile on Android NDK"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76512">76512</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris&#64;chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cairo won't compile on Android NDK
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs&#64;cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tal.liron&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.12.16
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is due to Android's imperfect support of Posix localization.

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

#ifndef __ANDROID__
struct lconv *locale_data;
#endif

...

#ifndef __ANDROID__
locale_data = localeconv ();
decimal_point = locale_data-&gt;decimal_point;
#else
decimal_point = &quot;.&quot;;
#endif</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>

--1395587485.f730Ea11.25756--


_______________________________________________
cairo-bugs mailing list
cairo-bugs@lists.cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic