calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / external / boost / boost.between.warning.patch
blob47a11ab0493f344998b6f7763ec71cd4572ec74a
1 diff -ru boost.orig/boost/libs/locale/src/encoding/codepage.cpp boost/boost/libs/locale/src/encoding/codepage.cpp
2 --- foo/misc/boost.orig/libs/locale/src/encoding/codepage.cpp
3 +++ foo/misc/boost/libs/locale/src/boost/locale/encoding/codepage.cpp
4 @@ -58,6 +58,9 @@
5 return cvt->convert(begin,end);
6 #endif
7 #endif
8 + // ensures we get a sensible warning in boost's gettext results about a real mismatch.
9 + if (to_charset && from_charset && !strcmp(to_charset, from_charset))
10 + return std::string(begin, end - begin);
11 throw invalid_charset_error(std::string(to_charset) + " or " + from_charset);