diff --git a/ansifilter/ansifilter.patch b/ansifilter/ansifilter.patch index 439195f17e..57a5b82cac 100644 --- a/ansifilter/ansifilter.patch +++ b/ansifilter/ansifilter.patch @@ -10,39 +10,3 @@ Index: src/makefile SOURCES=arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o\ codegenerator.o htmlgenerator.o pangogenerator.o texgenerator.o latexgenerator.o rtfgenerator.o svggenerator.o\ -Index: src/rtfgenerator.cpp ---- src/rtfgenerator.cpp.orig 2021-01-30 17:20:06.000000000 +0100 -+++ src/rtfgenerator.cpp 2021-02-06 09:31:34.982610000 +0100 -@@ -29,6 +29,14 @@ - #include "rtfgenerator.h" - #include "stylecolour.h" - -+#include -+ -+template std::string my_to_string(const T& n) { -+ std::ostringstream stm; -+ stm << n; -+ return stm.str(); -+} -+ - namespace ansifilter - { - -@@ -188,7 +196,7 @@ - - if (!utf8SeqLen){ - string m ( "\\u" ); -- m += to_string(utf16Char); -+ m += my_to_string(utf16Char); - m += '?'; - utf16Char=0L; - return m; -@@ -321,7 +329,7 @@ - std::istringstream iss(hexCode); - - iss >> std::hex >> x; -- decCode += to_string(x); -+ decCode += my_to_string(x); - decCode +="?"; - - return decCode;