From 6a308e8451ba3c32b203824a229e0c68f8a32cca Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Tue, 21 Aug 2012 13:01:37 +0200 Subject: Fixing error: \u0000 is not a valid universal character Change-Id: Idfc96e5f4b31cf54fdb9734b6e3cb87d3aabc786 --- libmspub/libmspub-0.0.3.patch | 20 ++++++++++++++++++++ libmspub/makefile.mk | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 libmspub/libmspub-0.0.3.patch (limited to 'libmspub') diff --git a/libmspub/libmspub-0.0.3.patch b/libmspub/libmspub-0.0.3.patch new file mode 100644 index 000000000000..c2c8ee18b20c --- /dev/null +++ b/libmspub/libmspub-0.0.3.patch @@ -0,0 +1,20 @@ +--- misc/libmspub-0.0.3/src/lib/MSPUBParser.cpp 2012-08-21 11:40:41.000000000 +0200 ++++ misc/build/libmspub-0.0.3/src/lib/MSPUBParser.cpp 2012-08-21 12:58:58.435884355 +0200 +@@ -1151,7 +1151,7 @@ + ParagraphStyle ret; + + bool isList = false; +- uint32_t bulletChar = '\u0000'; ++ uint32_t bulletChar = 0; + NumberingType numberingType = STANDARD_WESTERN; + NumberingDelimiter numberingDelimiter = NO_DELIMITER; + boost::optional numberIfRestarted; +@@ -1256,7 +1256,7 @@ + } + if (isList) + { +- if (bulletChar != '\u0000') ++ if (bulletChar) + { + ret.m_listInfo = ListInfo(bulletChar); + } diff --git a/libmspub/makefile.mk b/libmspub/makefile.mk index d894e20ac441..635d8ed6c838 100644 --- a/libmspub/makefile.mk +++ b/libmspub/makefile.mk @@ -65,6 +65,9 @@ TARFILE_MD5=b2db54b6e96287ac995d7ed654ace4fc BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) BUILD_DIR=src$/lib +PATCH_FILES=\ + $(TARFILE_NAME).patch + # --- Targets ------------------------------------------------------ .INCLUDE : set_ext.mk -- cgit