Closed GChivot closed 1 year ago
FYI: This is now fixed and will be in the upcoming 1.81 release.
As for the reason it didn't work on MSVC: Your MinGW version (of Boost) was built with IConv and/or ICU but your MSVC version was not build with either falling back to a hard-coded list of possible codepages and that didn't include (the rather informal) "Latin1" but only the "official" names like "ISO-8859-1"
I did add a small change to make "Latin1" a synonym for "ISO-8859-1" for that case.
I write a little test program on windows :
`#include <boost/locale.hpp>
include
include
int main() { using namespace boost::locale; using namespace std;
}`
I tried to run it with mingw and visual studio 2019 (with cmake). On mingw, I have no problems, it works well. On the other hand, with visual studio 2019, the program throw an exception :
Invalid or unsupported charset:Latin1
(version of boost 1.75). it works if replace Latin1 by ISO-8859-1.According to the documentation (https://www.boost.org/doc/libs/1_73_0/libs/locale/doc/html/charset_handling.html), it looks like a bug for me ... ?