Re: swprintf fails with extended character codes
Re: swprintf fails with extended character codes
- Subject: Re: swprintf fails with extended character codes
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 9 Apr 2010 14:19:41 +0100
I couldn't get it to work either. I eventually
resorted to this, editing the code to change char to wchar_t (actually,
TCHAR):
Note that this code doesn't implement %g, but it is
trivial to add it.
The libc source is available online, but try as I might I
cannot see where swprintf is tripping up:
Paul Sanders.
----- Original Message -----
Sent: Friday, April 09, 2010 12:07 PM
Subject: swprintf fails with extended character
codes
I'm working in some cross-platform code that uses wchar_t
based strings and I'm struggling to understand how swprintf() is supposed to
work.
Everything works fine if I use the wide string type as long as the
actual character codes do not exceed 255. As soon as my wide string actually
contains a true unicode character, swprintf() just returns -1 and an empty
string.
...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden