<HTML>
<BODY>
--On Sunday, March 08, 2009 14:12:16 +0000 Rob Shearman <robertshearman@gmail.com> wrote:<br>
<font color="#993366"><br>
¦ 2009/3/8 Rick Jones <rick@activeservice.co.uk>:<br>
¦ > Is there a Windows string function that expands escape sequences such as %n,<br>
¦ > %t, etc, and which is replicated by Wine?<br>
¦ <br>
¦ FormatMessageA/W?<br>
<br>
Hmm, could be, possibly the only function that fits the bill. If my theory was right, then changing %n in the ini file to %r%n would work - but it doesn't :(<br>
<br>
Also, FormatMessage is in kernel32, so not much chance of a native DLL either :-/<br>
<br>
Ho-hum, could be time to get onto the developer and see if he's interested in making his app. work under Wine.<br>
<br>
Cheers.<br>
<br>
¦ > I ask because I have a Windows app that is screwing up because of something<br>
¦ > like this. It has a private .ini settings file, and some settings are stored<br>
¦ > in that kind of format, but when it runs on Wine they are wrongly retrieved<br>
¦ > (this is a 3rd party app, I don't have the source).<br>
¦ ><br>
¦ > It looks horribly like %n is being expanded to NL instead of CR-NL. If<br>
¦ > there's a Windows/Wine function for this then I might be able to use a<br>
¦ > native DLL to get round it, but I've no idea where it might reside! AFAIK<br>
¦ > GetPrivateProfileString() doesn't do this expansion inherently.<br>
¦ ><br>
¦ > Also if it is the case that the behaviour's different, then I would say it's<br>
¦ > a Wine bug.<br>
¦ ><br>
¦ > Any ideas appreciated.<br>
¦ <br>
¦ -- <br>
¦ Rob Shearman<br>
¦ </font><br>
<br>
<br>
</BODY>
</HTML>