Re: Testing with Japanese XP
- From: Roy Lewallen <w7el@xxxxxxxxx>
- Date: Sun, 30 Oct 2005 15:52:51 -0800
J French wrote:
On Sat, 29 Oct 2005 17:57:11 -0700, Roy Lewallen <w7el@xxxxxxxxx> wrote:
I'm having some trouble with my English-language program when it's run on a Japanese OS. Some third-party software doesn't seem to be doing conversions between binary arrays and strings properly, and I'm seeing errors in using StrConv to convert from a binary array to a string. (I'm not trying to read or display Japanese characters, just storing binary data in strings.) I think I'm going to have to do a byte-by-byte copying
from one variable to the other, but it will be a major job. My immediate
problem, though, is how to test it as I make my modifications. Is there any way to get a U.S. XP operating system to emulate a Japanese product? If not, can anyone recommend a place to buy a Japanese version of XP? If anyone has had any experience doing this, I'd greatly appreciate any tips or cautions.
I hate to say this, but I too often store Binary Data in Strings, but I don't /want/ any of my Apps to work in a Far Eastern locale.
I'm afraid that what you need to do is store /all/ Binary Data in Byte Arrays ( or rather /no/ Binary Data in Strings )
After doing some research, I've come to the same conclusion. Byte arrays for byte data, only. That's the only real solution, even though it's going to be a bit of trouble to implement.
Does this look familiar to you :-
For L = 1 To Max A$( L9 ) = A$( L9 ) + MKL$( L9 ) Next ' Sort String Array For L9 = 1 To Max N = CVL( Right$( A$(L9) ) ) ....
Ah, yes, those were simpler times.
Sadly Unicode Strings do strange things in some Locales, or maybe it is ANSI <-> Unicode conversions
Can you give some examples of the 3rd Party software that you are using, is it AX or 'real' DLLs ?
If it is AX, then you are probably hosed - if it is 'real' DLLs then you don't have too many problems
Well, it's a "real" DLL, but written I believe in Power Basic. The only problem seems to be that some of the simple functions, which unfortunately I've fairly liberally used, return byte values from a dll storage "register" space as a string. Fortunately, there are also functions which can retrieve one byte at a time as a Long variable. I can put these into a byte array, and that seems to be working. I need to chase down other places where I've put bytes into strings and change over to byte arrays.
A couple of my Japanese customers who have good English skills have agreed to help out. So I'll send them some test programs to make sure my fixes work. Not as convenient as having a Japanese system on my second machine, but much better than shooting in the dark.
Thanks, Roy Lewallen .
- References:
- Testing with Japanese XP
- From: Roy Lewallen
- Re: Testing with Japanese XP
- From: J French
- Testing with Japanese XP
- Prev by Date: Re: Bogged down on things
- Next by Date: Re: Msgbox Function
- Previous by thread: Re: Testing with Japanese XP
- Next by thread: Bogged down on things
- Index(es):
Relevant Pages
|