[Wine] Correct wrong character set?
martin at gregorie.org
Fri Apr 16 11:24:32 CDT 2010
On Fri, 2010-04-16 at 10:20 -0500, cnbiz850 wrote:
> The Windows program I am running with Wine provides an editor of its
> own. I need to use that because only it then can save into the
> proprietary (non-ASCII) format the program needs to use.
Yes, I understood that, but not how the editor is launched: is it
launched by the program that needs the special file content or
If the latter, my script suggestion might help. As an example, this
(tested) script normally edits the file with gedit but if the file is in
$HOME/utils/scripts it uses vi. The magic on line 6 works because
"readlink -f" returns the absolute name of the file and dirname chops
off the file name, leaving just the directory path:
========================= tricked ==============================
if [ -z "$1" ]
path=$(dirname $(readlink -f $1))
if [ "$path" == "$HOME/utils/scripts" ]
====================== end of tricked ==============================
It runs vi regardless of whether you type something like:
It does the same regardless of whether you're using the editor to create
a new file or edit an existing one.
If no filename is given it always runs gedit.
> I hope if there is a way for me to use the Linux keyboard to type
> correctly into the program's editor.
Why not? AFAIK the keyboard generates the same output regardless of
whether the keystroke consumer is a Linus program or a Windows program
running under wine.
More information about the wine-users