Debian Patches

Status for source-highlight/3.1.9-4.3

Patch Description Author Forwarded Bugs Origin Last update
fix-national-encoding.patch Fix national encoding to utf8 Upstream credits contains ISO-8859-1 charecters which
needs to be converted to UTF-8 for compatibility.
Kartik Kulkarni <> no
gcc11.patch Remove "throw" specifications C++ throw specifications were deprecated in C++11.
This patch removes them from the library.
Tom Tromey <> no debian upstream, 2020-06-10
gcc12.patch Fix tests build failure on clang and gcc-12
Both gcc-12 and clang can't find ostream<<(..., std::pair<...>)
overload when compile lib/tests/test_wordtokenizer_main.cpp and
fail as:

error no match for «operator<<» (operand types are «std::ostringstream»
{aka «std::__cxx11::basic_ostringstream<char>»}
and «const std::pair<std::__cxx11::basic_string<char>,
std::__cxx11::basic_string<char> >»)
103 | buf << (*it);
| ~~~~^~~~~~~~

We fix it by placing overload to std namespace where std::pair<...>
is defined to make ADL work predictably.

clang also has a trouble compiling lib/tests/stdboosterror.h as:

./stdboosterror.h:7:72: error: parameter declarator cannot be qualified

gcc compiles it by accident:

Let's disambiguate syntax by making it an explicit constructor call.
Sergei Trofimovich <> no 2021-11-08

All known versions for source package 'source-highlight'