From e8a40853c02e94db7c2133224e86cf8727df5ba0 Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Mon, 22 Aug 2005 15:03:41 +0000 Subject: [PATCH] reverted previous bit of test code :) --- examples/Utils/transcode.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/examples/Utils/transcode.cpp b/examples/Utils/transcode.cpp index 2b9d1f7a..5993635e 100644 --- a/examples/Utils/transcode.cpp +++ b/examples/Utils/transcode.cpp @@ -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, char, std::char_traits > Narrower; - Narrower oCharAdaptor(std::cout); - - oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt())); - oCharAdaptor << L"Hello Ì Õ"; - oCharAdaptor.flush();*/ - - oconvert_adaptor oByteConvertor(std::cout); - typedef oconvert_adaptor, - char, std::char_traits > Narrower; - Narrower oCharAdaptor(oByteConvertor); - - oCharAdaptor.imbue(std::locale(oCharAdaptor.getloc(), new utf8ucs2codecvt())); - oCharAdaptor << L"Hello Ì Õ"; - oByteConvertor.flush(); -} // main void wchar_transcode() {