At 12:00am -0700 00-07-25, Palm Developer Forum digest wrote:
>Subject: Reg Codes and Japanese OS
>From: "Michael S. Davis" <[EMAIL PROTECTED]>
>Date: Mon, 24 Jul 2000 10:02:50 -0700 (PDT)
>X-Message-Number: 25
>
>
>I have been using a variant of the Reg Code scheme to generate keys for
>registration.  I have only recently come up against a problem.  For some
>reason the keys are not working on the Japanese version of the OS.  I
>know there is a difference in the character size for US and Japanese
>versions but I don't understand why, after a year, this is now a
>problem.
>
>My scheme basically just does some arithmetic operations and shifting
>and logic operations on characters of type char.  What specific changes
>should I make so that such code works with Japanese characters also?

As long as your code correctly handles bytes in the range from 0x20 
to 0xFC then it should work fine with Japanese (Shift-JIS) as well. 
If I was going to hazard a guess, it would be that the algorithm has 
a problem with sign-extension, such that English user names with 
characters in the high-ASCII range would also fail.

-- 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