Foxpro chinese data display

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bc991122
Newbie
Newbie
Posts: 2
Joined: Sat May 17, 2008 5:36 am

Foxpro chinese data display

Post by bc991122 »

Dear All,

I have installed the latest wine and run Visual Foxpro progams under wine

However Chinese data retreived cannot display correctly

I know under Windows, Foxpro display them correctly using an option in Control Panel "Use program for Non-unicode program" and choosing say "Chinese TW"

Is there such option under Wine ? or can we modify the default codepage on wine to have the Chinese data displayed correctly ?

Thanks for any insight.


Brian
mikolajz
Level 2
Level 2
Posts: 20
Joined: Wed Feb 27, 2008 7:18 am

Post by mikolajz »

The first thing is to set the locale correctly (as I understand this is a non-Unicode application). You can either do this by setting the preferred language of the whole Linux system to Chinese or by starting the program from the command line with with "LANG=zh_TW wine program.exe" (maybe try first "LANG=zh_TW wine winecfg" to check if the locale is properly recognized). This will set the system locale, and setting the system locale is what the Windows "Language for non-Unicode programs" option is for.

The second thing you may have programs with are Chinese fonts - Wine doesn't ship any and the fact that the Linux ones are named differently from the Windows ones may be a problem for some applications. The easiest solution is to copy them from Windows (if you have a Windows license), but you could also try to use font substitutions to map some Linux fonts into the Windows font names.

Another problem you could have is the font linking (see http://bugs.winehq.org/show_bug.cgi?id=11861 ). On Windows the system (probably the Regional Settings applet) creates them automatically. On Wine you may need to create them manually.

I should add that I don't know if these are all the problems you can have with Chinese programs. I don't have much experience in runnig Chinese program. I was only once investigating the bug #11861, and these are the problems I know of.
bc991122
Newbie
Newbie
Posts: 2
Joined: Sat May 17, 2008 5:36 am

Visual Foxpro cannot display Chinese data

Post by bc991122 »

Dear mikolajz,

Thanks for your advice.

I did install "wineloc" and run "wineloc -l zh_TW XXX.prg" but did not help

I also did "LANG=zh_TW wine XXX.prg" but did not help either

Not sure how to do "font linking" , if possible, please advise

Thanks so much



bc991122
Locked