At 12:00am -0800 01-02-01, Palm Developer Forum digest wrote:
>Subject: StrChr...
>From: Paul Nevai <[EMAIL PROTECTED]>
>Date: Wed, 31 Jan 2001 08:04:11 -0500 (EST)
>X-Message-Number: 14
>

>Please look at the code of StrChr () in StringMgr.c [I can't quote here].  It
>seems to me that when it returns (Char *)str, it may not be the correct
>location in a multi-byte environment.
>
>What is the right way to do a StrChr () job in a possibly multi-byte
>environment? Should I use StrChr () or a Text Manager function for that job
>or should I create a custom routine? Best regards, Paul

StrChr() was patched on older Japanese ROMs (3.1 & 3.5) to return 
correct results - you won't get a ptr into the middle of a 
double-byte character. In 4.0 the core code has been modified to work 
correctly without patching.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to