2015-06-13 01:03:31 +02:00
|
|
|
diff -u -r ../poppler-0.26.2/goo/gstrtod.cc ./goo/gstrtod.cc
|
|
|
|
--- ../poppler-0.26.2/goo/gstrtod.cc 2014-04-26 17:37:22.000000000 +0200
|
|
|
|
+++ ./goo/gstrtod.cc 2014-06-26 08:44:42.000000000 +0200
|
|
|
|
@@ -41,7 +41,9 @@
|
|
|
|
{
|
2020-08-27 20:14:06 +02:00
|
|
|
char *fail_pos;
|
|
|
|
double val;
|
2015-06-13 01:03:31 +02:00
|
|
|
+#ifndef __ANDROID__
|
2020-08-27 20:14:06 +02:00
|
|
|
struct lconv *locale_data;
|
2015-06-13 01:03:31 +02:00
|
|
|
+#endif
|
2020-08-27 20:14:06 +02:00
|
|
|
const char *decimal_point;
|
|
|
|
int decimal_point_len;
|
|
|
|
const char *p, *decimal_point_pos;
|
2015-06-13 01:03:31 +02:00
|
|
|
@@ -50,8 +52,12 @@
|
|
|
|
|
2020-08-27 20:14:06 +02:00
|
|
|
fail_pos = nullptr;
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
+#ifdef __ANDROID__
|
2020-08-27 20:14:06 +02:00
|
|
|
+ decimal_point = ".";
|
2015-06-13 01:03:31 +02:00
|
|
|
+#else
|
2020-08-27 20:14:06 +02:00
|
|
|
locale_data = localeconv();
|
|
|
|
decimal_point = locale_data->decimal_point;
|
2015-06-13 01:03:31 +02:00
|
|
|
+#endif
|
2020-08-27 20:14:06 +02:00
|
|
|
decimal_point_len = strlen(decimal_point);
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2020-08-27 20:14:06 +02:00
|
|
|
decimal_point_pos = nullptr;
|