Dear Mr. Aaron,
        I just a rookie in the field of palm developer. I read your mail and wonder
where I can find PalmOS source code. Please inform me if you know.

Regard,
Kittichai J.

-----Original Message-----
From: Aaron Ardiri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 30, 1999 7:32 PM
To: [EMAIL PROTECTED]
Subject: StrCompare() - bug?


hi!

  i was playing aroung with the StrCompare() function the other
  day and i noticed something *strange* about its behavior :>

    Int result = StrCompare("Language", "L�nguage");

  notice that the second word is "L�nguage" (not a real word,
  but good enough for comparision) :>> which contains an accented
  character "�".

  when executing.. the result is NEGATIVE, when in fact it should
  be POSITIVE! :> i looked at the OS 3.0 source code and noticed
  that it is fine, however - i had to rewrite the function to
  compare the "unsigned char" value of the character being used
  in the string.

  "�" has an ASCII value greater than 127, and hence has a -ve value
  when being compared within these types of routines. everything of
  course works fine for normal ASCII characters (non accented)

  has this been fixed in later versions of the OS?

az.
--
Aaron Ardiri
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 26 10 16 11



__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

Reply via email to