On Tue, 25 Jul 2000, Ken Krugler wrote:
> >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.
Maybe, the only english-type name that ever cause a problem are the ones
that have accented characters.
>
> -- Ken
>
> Ken Krugler
> TransPac Software, Inc.
> <http://www.transpac.com>
> +1 530-470-9200
>
----------------------------------------------------
Shoot-to-Win
Protect the 2nd Amendment
----------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/