qt: disable isascii calls when undefined
PATCH 1/1 qt: disable isascii calls when undefined
--- ...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
package/qt/qt-4.7.2-qlocale-disable-isascii-call-when-not-defined.patch new file +47 -0
@@ -0,0 +1,47 @@ +From d2b483fea53a673a0dc9719717271615260e6ee7 Mon Sep 17 00:00:00 2001 +From: Samuel Martin <[email protected]> +Date: Wed, 23 Mar 2011 23:12:36 +0100 +Subject: qlocale: disable isascii call when not defined + +Signed-off-by: Samuel Martin <[email protected]> +--- + 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 +
Signature · 1 line
1.7.0.4
PATCH 1/1 qt: disable isascii calls when undefined
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Samuel" == Samuel Martin <[email protected]> writes:
Samuel> Signed-off-by: Samuel Martin <[email protected]>
Out of interest, on what kind of setup don't you have isascii()? Have you sent this patch upstream to the qt people?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 qt: disable isascii calls when undefined
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 <[email protected]>
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Samuel" == Samuel Martin <[email protected]> writes:
Samuel> Signed-off-by: Samuel Martin <[email protected]>
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>