id summary reporter owner description type status milestone component version severity resolution keywords cc 10245 Boost::Format autocasts to character when I told it a number Mikhail Kandel Samuel Krempp "Hi. I was disappointed to learn that Boost::format will print an unsigned char as a character despite the format string being set to an integer. This is different then the behavior of printf, and goes against intuition as I explicitly specified the datatype. unsigned char smallnumber = 4; printf(""%d"",smallnumber);%good boost::format(""%d"") % smallnumber; // bad, treats as char, outputs strange character It looks I'm not the only one that had this problem: http://stackoverflow.com/questions/1674284/boostformat-question Wanted to make sure the boost people knew about this," Bugs closed To Be Determined format Boost 1.56.0 Problem duplicate cast