wchar_t and printf not working
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com All, This is my first post to darwin-dev and I hope this is on topic. I try: Regards, Warwick Hall _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I have downloaded expat-1.95.8 (an XML cross platform C lib) and it has the option of using UTF-16, which is passed around in wchar_t* variables. I want to print these variables out to stdout, and i am not having any luck. printf( "<format string>", element); where <format string> is "%s", or "%S", or "%ls". Nothing gets printed to screen. wprintf( L"<format string>", element); where <format string> is "%s", "%S", "%ls". Weird stuff gets printed to screen. Could it be that expat is assuming wchar_t is 2 bytes instead of the 4 bytes of darwin running on powerpc? This email sent to site_archiver@lists.apple.com
participants (1)
-
Warwick Hall