Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31e6d7b

Browse files
committed
Added patch to libxml2-2.9.4 for SDK71
1 parent5b4e0ae commit31e6d7b

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

‎build/helpers/dependencies.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ wget -c ftp://xmlsoft.org/libxml2/libxml2-%XML_VER%.tar.gz -O libxml2-%XML_VER%.
134134
rm -rf%DEPENDENCIES_BIN_DIR%\libxml2%DEPENDENCIES_SRC_DIR%\libxml2-*
135135
MKDIR%DEPENDENCIES_BIN_DIR%\libxml2
136136
tar xf libxml2-%XML_VER%.tar.gz -C%DEPENDENCIES_SRC_UDIR%||GOTO :ERROR
137+
CD /D%DEPENDENCIES_SRC_DIR%\libxml2-*
138+
patch -f -p1<%ROOT%/patches/libxml2/libxml2.patch||GOTO :ERROR
137139
CD /D%DEPENDENCIES_SRC_DIR%\libxml2-*\win32
138140
cscript configure.js compiler=msvc include=%DEPENDENCIES_BIN_DIR%\iconv\include lib=%DEPENDENCIES_BIN_DIR%\iconv\lib
139141
sed -i /NOWIN98/d Makefile.msvc

‎patches/libxml2/libxml2.patch

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
diff -Naur libxml2-2.9.4.orig/relaxng.c libxml2-2.9.4/relaxng.c
2+
--- libxml2-2.9.4.orig/relaxng.c2017-01-31 12:30:32.964119994 +0300
3+
+++ libxml2-2.9.4/relaxng.c2017-01-31 12:34:57.196114129 +0300
4+
@@ -2088,6 +2088,7 @@
5+
const xmlChar * arg2)
6+
{
7+
char msg[1000];
8+
+ xmlChar *result = NULL;
9+
10+
if (arg1 == NULL)
11+
arg1 = BAD_CAST "";
12+
@@ -2215,7 +2216,7 @@
13+
snprintf(msg, 1000, "Unknown error code %d\n", err);
14+
}
15+
msg[1000 - 1] = 0;
16+
- xmlChar *result = xmlCharStrdup(msg);
17+
+ result = xmlCharStrdup(msg);
18+
return (xmlEscapeFormatString(&result));
19+
}
20+
21+
diff -Naur libxml2-2.9.4.orig/xmlschemas.c libxml2-2.9.4/xmlschemas.c
22+
--- libxml2-2.9.4.orig/xmlschemas.c2017-01-31 12:30:32.964119994 +0300
23+
+++ libxml2-2.9.4/xmlschemas.c2017-01-31 12:34:20.700114939 +0300
24+
@@ -3121,6 +3121,7 @@
25+
const xmlChar *str2)
26+
{
27+
xmlChar *msg = NULL;
28+
+ xmlChar *expectedEscaped = NULL;
29+
30+
xmlSchemaFormatNodeForError(&msg, ACTXT_CAST ctxt, node);
31+
if (message == NULL) {
32+
@@ -3169,7 +3170,7 @@
33+
}
34+
if (expected) {
35+
msg = xmlStrcat(msg, BAD_CAST " Expected is '");
36+
- xmlChar *expectedEscaped = xmlCharStrdup(expected);
37+
+ expectedEscaped = xmlCharStrdup(expected);
38+
msg = xmlStrcat(msg, xmlEscapeFormatString(&expectedEscaped));
39+
FREE_AND_NULL(expectedEscaped);
40+
msg = xmlStrcat(msg, BAD_CAST "'.\n");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp