reverted previous bit of test code :)

This commit is contained in:
jez_higgins 2005-08-22 15:03:41 +00:00
parent 14e1d2c4e9
commit e8a40853c0

View file

@ -42,8 +42,7 @@ bool processArgs(int argc, const char* argv[]);
bool imbueInput(int& argn, int argc, const char* argv[]);
bool imbueOutput(int& argn, int argc, const char* argv[]);
/*int main(int argc, const char* argv[])
int main(int argc, const char* argv[])
{
if(!processArgs(argc, argv))
{
@ -63,26 +62,6 @@ bool imbueOutput(int& argn, int argc, const char* argv[]);
return 0;
} // main
*/
int main()
{
/* typedef oconvert_adaptor<wchar_t, std::char_traits<wchar_t>, char, std::char_traits<char> > Narrower;
Narrower oCharAdaptor(std::cout);
oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt()));
oCharAdaptor << L"Hello Ì Õ";
oCharAdaptor.flush();*/
oconvert_adaptor<char> oByteConvertor(std::cout);
typedef oconvert_adaptor<wchar_t,
std::char_traits<wchar_t>,
char, std::char_traits<char> > Narrower;
Narrower oCharAdaptor(oByteConvertor);
oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt()));
oCharAdaptor << L"Hello Ì Õ";
oByteConvertor.flush();
} // main
void wchar_transcode()
{