* [Buildroot] [PATCH 1/1] qt: disable isascii calls when undefined
@ 2011-03-23 22:54 Samuel Martin
2011-03-27 20:51 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Martin @ 2011-03-23 22:54 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
...ale-disable-isascii-call-when-not-defined.patch | 47 ++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
create mode 100644 package/qt/qt-4.7.2-qlocale-disable-isascii-call-when-not-defined.patch
diff --git a/package/qt/qt-4.7.2-qlocale-disable-isascii-call-when-not-defined.patch b/package/qt/qt-4.7.2-qlocale-disable-isascii-call-when-not-defined.patch
new file mode 100644
index 0000000..f3cc3df
--- /dev/null
+++ b/package/qt/qt-4.7.2-qlocale-disable-isascii-call-when-not-defined.patch
@@ -0,0 +1,47 @@
+From d2b483fea53a673a0dc9719717271615260e6ee7 Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Wed, 23 Mar 2011 23:12:36 +0100
+Subject: qlocale: disable isascii call when not defined
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+---
+ src/corelib/tools/qlocale.cpp | 5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
+index cfc8b33..9f03235 100644
+--- a/src/corelib/tools/qlocale.cpp
++++ b/src/corelib/tools/qlocale.cpp
+@@ -123,6 +123,7 @@ static qlonglong qstrtoll(const char *nptr, const char **endptr, register int ba
+ static qulonglong qstrtoull(const char *nptr, const char **endptr, register int base, bool *ok);
+
+ #if defined(Q_CC_MWERKS) && defined(Q_OS_WIN32)
++# define __HAS_ISASCII
+ inline bool isascii(int c)
+ {
+ return (c >= 0 && c <=127);
+@@ -4704,8 +4705,10 @@ static qulonglong qstrtoull(const char *nptr, const char **endptr, register int
+ cutoff = qulonglong(ULLONG_MAX) / qbase;
+ cutlim = qulonglong(ULLONG_MAX) % qbase;
+ for (acc = 0, any = 0;; c = *s++) {
++#if defined(__HAS_ISASCII)
+ if (!isascii(c))
+ break;
++#endif
+ if (isdigit(c))
+ c -= '0';
+ else if (isalpha(c))
+@@ -4802,8 +4805,10 @@ static qlonglong qstrtoll(const char *nptr, const char **endptr, register int ba
+ cutlim = cutoff % qbase;
+ cutoff /= qbase;
+ for (acc = 0, any = 0;; c = *s++) {
++#if defined(__HAS_ISASCII)
+ if (!isascii(c))
+ break;
++#endif
+ if (isdigit(c))
+ c -= '0';
+ else if (isalpha(c))
+--
+1.7.0.4
+
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] qt: disable isascii calls when undefined
2011-03-23 22:54 [Buildroot] [PATCH 1/1] qt: disable isascii calls when undefined Samuel Martin
@ 2011-03-27 20:51 ` Peter Korsgaard
2011-03-28 5:04 ` Samuel Martin
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2011-03-27 20:51 UTC (permalink / raw)
To: buildroot
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
Samuel> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Out of interest, on what kind of setup don't you have isascii()? Have
you sent this patch upstream to the qt people?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] qt: disable isascii calls when undefined
2011-03-27 20:51 ` Peter Korsgaard
@ 2011-03-28 5:04 ` Samuel Martin
0 siblings, 0 replies; 3+ messages in thread
From: Samuel Martin @ 2011-03-28 5:04 UTC (permalink / raw)
To: buildroot
Ok.
btw, i found the problem: just forget to enable the SUSV4_LEGACY in the
uclibc config.
Sorry for the noise.
Bye,
Samuel
2011/3/27 Peter Korsgaard <jacmet@uclibc.org>
> >>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes:
>
> Samuel> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
>
> Out of interest, on what kind of setup don't you have isascii()? Have
> you sent this patch upstream to the qt people?
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110328/115c9941/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-28 5:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 22:54 [Buildroot] [PATCH 1/1] qt: disable isascii calls when undefined Samuel Martin
2011-03-27 20:51 ` Peter Korsgaard
2011-03-28 5:04 ` Samuel Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox