id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6635,Boost.Locale UTF encode function passes wrong type to output iterator,jason.erb@…,Artyom Beilis,"When passing a char output iterator (such as {{{std::back_insert_iterator}}}) to {{{boost::locale::utf::utf_traits::encode}}}, the compiler (Apple LLVM compiler 3.1 in Xcode 4.3 with extra warnings enabled) emits a warning about assigning {{{unsigned int}}} to {{{char}}}. The code incorrectly attempts to write the code unit to the output as a {{{code_point}}} instead of a {{{CharType}}}. The attached patch performs a safe static cast of each code unit to {{{CharType}}} as it is written to the output iterator.",Bugs,closed,Boost 1.50.0,locale,Boost 1.49.0,Cosmetic,fixed,Boost.Locale encode UTF,