Hi James,

I replaced the call to UpgradeScriptInfoToTextEncoding with the code you 
supplied.  When I stepped through it, the if statement failed, so it when 
to DebugStr(...) with no problem, but then I got the "Illegal instruction 
exception" at the function call CreateTextToUnicodeInfoByEncoding.  (Which 
is right after the call to UpgradeSriptInfoToTextEncoding).

Are UpgradeScriptInfoToTextEncoding and CreateTextToUnicodeInfoByEncoding 
both Mac OS "Carbon" functions?  Could it be that I don't have the Carbon 
stuff setup correctly?

-Eric



At 09:31 AM 5/18/2001 -0700, you wrote:
>Eric,
>
>Please try replacing the call to UpgradeScriptInfoToTextEncoding with the 
>following code, and let me know if it helps:
>
>    if (UpgradeScriptInfoToTextEncoding != 0)
>     {
>         status = UpgradeScriptInfoToTextEncoding(
>             smSystemScript, kTextLanguageDontCare, kTextRegionDontCare,
>             NULL, &systemTextEncoding);
>     }
>     else
>         DebugStr( \UpgradeScriptInfoToTextEncoding unsupported );
>
>
>-jdb


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to