tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
qt56.qtwebkit: fix build with ICU 59
Thomas Tuegel
8 years ago
91b362c5
8559b6db
+72
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
qt-5
5.6
qtwebkit.patch
+72
pkgs/development/libraries/qt-5/5.6/qtwebkit.patch
···
1
1
+
diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp
2
2
+
index 812f3d413..77a3fd0f4 100644
3
3
+
--- a/Source/JavaScriptCore/API/JSStringRef.cpp
4
4
+
+++ b/Source/JavaScriptCore/API/JSStringRef.cpp
5
5
+
@@ -37,7 +37,7 @@ using namespace WTF::Unicode;
6
6
+
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
7
7
+
{
8
8
+
initializeThreading();
9
9
+
- return OpaqueJSString::create(chars, numChars).leakRef();
10
10
+
+ return OpaqueJSString::create(reinterpret_cast<const UChar*>(chars), numChars).leakRef();
11
11
+
}
12
12
+
13
13
+
JSStringRef JSStringCreateWithUTF8CString(const char* string)
14
14
+
@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string)
15
15
+
JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars)
16
16
+
{
17
17
+
initializeThreading();
18
18
+
- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
19
19
+
+ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast<const UChar*>(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
20
20
+
}
21
21
+
22
22
+
JSStringRef JSStringRetain(JSStringRef string)
23
23
+
@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string)
24
24
+
25
25
+
const JSChar* JSStringGetCharactersPtr(JSStringRef string)
26
26
+
{
27
27
+
- return string->characters();
28
28
+
+ return reinterpret_cast<const JSChar*>(string->characters());
29
29
+
}
30
30
+
31
31
+
size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
32
32
+
diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp
33
33
+
index 0b57f012d..05e27338b 100644
34
34
+
--- a/Source/JavaScriptCore/runtime/DateConversion.cpp
35
35
+
+++ b/Source/JavaScriptCore/runtime/DateConversion.cpp
36
36
+
@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as
37
37
+
#if OS(WINDOWS)
38
38
+
TIME_ZONE_INFORMATION timeZoneInformation;
39
39
+
GetTimeZoneInformation(&timeZoneInformation);
40
40
+
- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
41
41
+
+ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
42
42
+
+ String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName));
43
43
+
#else
44
44
+
struct tm gtm = t;
45
45
+
char timeZoneName[70];
1
46
diff --git a/Source/WTF/WTF.pri b/Source/WTF/WTF.pri
2
47
index 1f4866d66..bb61e4ba3 100644
3
48
--- a/Source/WTF/WTF.pri
···
11
56
} else:!use?(wchar_unicode): {
12
57
win32 {
13
58
CONFIG(static, static|shared) {
59
59
+
diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h
60
60
+
index 9df2c95cf..f5d6121fd 100644
61
61
+
--- a/Source/WTF/wtf/TypeTraits.h
62
62
+
+++ b/Source/WTF/wtf/TypeTraits.h
63
63
+
@@ -72,6 +72,9 @@ namespace WTF {
64
64
+
template<> struct IsInteger<unsigned long> { static const bool value = true; };
65
65
+
template<> struct IsInteger<long long> { static const bool value = true; };
66
66
+
template<> struct IsInteger<unsigned long long> { static const bool value = true; };
67
67
+
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT)
68
68
+
+ template<> struct IsInteger<char16_t> { static const bool value = true; };
69
69
+
+#endif
70
70
+
#if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED)
71
71
+
template<> struct IsInteger<wchar_t> { static const bool value = true; };
72
72
+
#endif
14
73
diff --git a/Source/WebCore/plugins/qt/PluginPackageQt.cpp b/Source/WebCore/plugins/qt/PluginPackageQt.cpp
15
74
index a923d49aa..46772a4bb 100644
16
75
--- a/Source/WebCore/plugins/qt/PluginPackageQt.cpp
···
59
118
if (!gtkLibrary.load())
60
119
return false;
61
120
typedef void* (*gtk_init_ptr)(void*, void*);
121
121
+
diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
122
122
+
index cbac67dd8..23400a64e 100644
123
123
+
--- a/Source/WebKit2/Shared/API/c/WKString.cpp
124
124
+
+++ b/Source/WebKit2/Shared/API/c/WKString.cpp
125
125
+
@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef)
126
126
+
size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength)
127
127
+
{
128
128
+
COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar);
129
129
+
- return (toImpl(stringRef)->getCharacters(static_cast<UChar*>(buffer), bufferLength));
130
130
+
+ return (toImpl(stringRef)->getCharacters(reinterpret_cast<UChar*>(buffer), bufferLength));
131
131
+
}
132
132
+
133
133
+
size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef)
62
134
diff --git a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp b/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
63
135
index d734ff684..0f6ff63d1 100644
64
136
--- a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp