Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: lang.c Log Message: UCS-4 seems to be more portable than WCHAR_T. =================================================================== RCS file: /cvs/e/e16/e/src/lang.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- lang.c 24 Nov 2006 23:26:43 -0000 1.17 +++ lang.c 30 Nov 2006 22:03:20 -0000 1.18 @@ -164,8 +164,13 @@ else enc = nl_langinfo(CODESET); +#if SIZEOF_WCHAR_T == 4 + iconv_cd_str2wcs = iconv_open("UCS-4", enc); + iconv_cd_wcs2str = iconv_open(enc, "UCS-4"); +#else iconv_cd_str2wcs = iconv_open("WCHAR_T", enc); iconv_cd_wcs2str = iconv_open(enc, "WCHAR_T"); +#endif if (iconv_cd_str2wcs != BAD_CD && iconv_cd_wcs2str != BAD_CD) return 0; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs