Trouble with vmime and ICU

44 views
Skip to first unread message

chaser...@gmail.com

unread,
May 25, 2014, 6:50:02 AM5/25/14
to vm...@googlegroups.com
I have trouble with vmime and ICU.


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.

VMime

unread,
May 27, 2014, 5:52:11 AM5/27/14
to vm...@googlegroups.com
Hi!

Please try the attached patch, and let us know whether it works.
vmime-icuwarning.patch
Reply all
Reply to author
Forward
0 new messages