id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8570,boost::locale::generator::use_ansi_encoding bug: gives the unexpected result on Win7 Chinese.,316293804@…,Artyom Beilis," boost::locale::generator gen; gen.use_ansi_encoding(true); strLocaleName = std::use_facet( gen("""")).name(); gen.use_ansi_encoding(false); strLocaleName = std::use_facet( gen("""")).name(); strLocaleName always ""zh_CN.UTF-8"", why i can't get ""zh_CN.GB2312"" ? I want to convert wstring to string.Milestone But string = boost::locale::conv::from_utf(wstring, gen("""")); is same with string = boost::locale::conv::from_utf(wstring, gen(""UTF-8"")); so it gives the unexpected result. And why get_system_locale give the expected result ? get_system_locale(true); // ""zh_CN.UTF-8"" get_system_locale(false); // ""zh_CN.windows-936"" So I have to use this code, boost::locale::generator gen; strCodePage = boost::locale::util::get_system_locale(); string = boost::locale::conv::from_utf( wstring, std::use_facet(gen(strCodePage)).encoding()); Is this a bug of boost::locale::generator::use_ansi_encoding ?",Bugs,closed,To Be Determined,locale,Boost 1.53.0,Problem,invalid,,