"Lei Zhang" thestig@google.com writes:
I have a shell script that calls winepath -w to get the windows path from a unix path. Then I want to stick the value into the registry by a search and replace in ${WINEPREFIX}/*.reg.
That's a bad idea. You should use regedit, which will avoid potential conflicts with a running session, and will take care of the encoding (the Ansi codepage is *not* the right encoding for reg files).