minimal example:
CMakeLists.txt:
=================
cmake_minimum_required(VERSION 2.8)
add_definitions ( -Wall -Wextra -pedantic -std=c++11 -O2 -pipe)
add_executable(test main.cpp)
target_link_libraries(test vmime)
=================
main.cpp:
=================
#include <vmime/vmime.hpp>
int main()
{
std::string in, out;
vmime::charset ch_utf8(vmime::charsets::UTF_8);
vmime::charset ch_windows1251(vmime::charsets::WINDOWS_1251);
vmime::charset::convert(in, out, ch_windows1251, ch_utf8);
return 0;
}
=================
$ ./test
terminate called after throwing an instance of 'vmime::exceptions::charset_conv_error'
what(): Cannot initialize ICU converter for source charset 'windows-1251'.
Aborted
==================
Is this trouble in vmime or in ICU?
P.S. With vmime and ICONV I have no problem.
Thanks.