0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/x11-packages/poppler-qt/gstrtod.cc.patch
2022-04-30 03:44:48 +09:00

27 lines
686 B
Diff

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 @@
{
char *fail_pos;
double val;
+#ifndef __ANDROID__
struct lconv *locale_data;
+#endif
const char *decimal_point;
int decimal_point_len;
const char *p, *decimal_point_pos;
@@ -50,8 +52,12 @@
fail_pos = nullptr;
+#ifdef __ANDROID__
+ decimal_point = ".";
+#else
locale_data = localeconv();
decimal_point = locale_data->decimal_point;
+#endif
decimal_point_len = strlen(decimal_point);
decimal_point_pos = nullptr;