From 647afe1aa1b2da82f39a70868c370997c22bb696 Mon Sep 17 00:00:00 2001 From: David Mathog <> Date: Thu, 18 Oct 2012 20:20:34 +0200 Subject: changes_2012_10_18b.patch: Additional fix for text that starts with any of the characters 0x0-0x1F cast the tested character to unsigned to prevent dropping of some strings (follow-up to r11984) (bzr r11668.1.31) --- src/extension/internal/emf-inout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/extension/internal/emf-inout.cpp b/src/extension/internal/emf-inout.cpp index 295bbd5ea..8be4e998e 100644 --- a/src/extension/internal/emf-inout.cpp +++ b/src/extension/internal/emf-inout.cpp @@ -2708,7 +2708,7 @@ std::cout << "BEFORE DRAW" ansi_text = (char *) U_Utf32leToUtf8((uint32_t *)dup_wt, 0, NULL); free(dup_wt); // Empty string or starts with an invalid escape/control sequence, which is bogus text. Throw it out before g_markup_escape_text can make things worse - if(*ansi_text <= 0x1F){ + if(*((uint8_t *)ansi_text) <= 0x1F){ free(ansi_text); ansi_text=NULL; } -- cgit v1.2.3