From 0e19e76aba9f470c348e25bb2d550f9a096642bd Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sun, 16 Jul 2000 18:47:43 +0000 Subject: - change \x to mean "byte" also in unicode literals (patch #100912) --- Objects/unicodeobject.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 989ad1f..3542879 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1198,13 +1198,15 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, *p++ = x; break; - /* \xXXXX escape with 0-4 hex digits */ + /* \xXXXX escape with 1-n hex digits. for compatibility + with 8-bit strings, this code ignores all but the last + two digits */ case 'x': x = 0; c = (unsigned char)*s; if (isxdigit(c)) { do { - x = (x<<4) & ~0xF; + x = (x<<4) & 0xF0; if ('0' <= c && c <= '9') x += c - '0'; else if ('a' <= c && c <= 'f') @@ -1213,7 +1215,7 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, x += 10 + c - 'A'; c = (unsigned char)*++s; } while (isxdigit(c)); - *p++ = x; + *p++ = (unsigned char) x; } else { *p++ = '\\'; *p++ = (unsigned char)s[-1]; -- cgit v0.12 h.patch'>logtreecommitdiffstats
path: root/src/qt-2-macosx-gcc-arch.patch
blob: 5f529166c0f70731d79b5e57545d3f673460b7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This file is part of mingw-cross-env.
See doc/index.html for further information.

The native build complains about:

"You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."

diff -ur a/mkspecs/macx-g++/qmake.conf b/mkspecs/macx-g++/qmake.conf
--- a/mkspecs/macx-g++/qmake.conf	2010-09-26 23:32:05.000000000 +1000
+++ b/mkspecs/macx-g++/qmake.conf	2010-09-26 23:31:29.000000000 +1000
@@ -13,8 +13,8 @@
 QT			+= core gui
 QMAKE_INCREMENTAL_STYLE = sublib
 
-QMAKE_CC		 = gcc
-QMAKE_CXX		 = g++
+QMAKE_CC		 = gcc -arch i386
+QMAKE_CXX		 = g++ -arch i386
 
 include(../common/mac-g++.conf)