+ if (err != noErr && err != kTECUsedFallbacksStatus)
+ /* XXX Should handle this more sensibly */
+ return;
+ } else {
+ /* XXX this is bogus if wchar_t and UniChar are different sizes. */
+ unitextptr = (wchar_t *)unitextbuf;
+ /* XXX Should choose charset based on script, font etc. */
+ olen = charset_from_unicode(&unitextptr, &len, mactextbuf, 1024,
+ CS_MAC_ROMAN, NULL, ".", 1);