<HTML>

<BODY>

--On Sunday, March 08, 2009 14:12:16 +0000 Rob Shearman &lt;robertshearman@gmail.com&gt; wrote:<br>
<font color="#993366"><br>
&brvbar; 2009/3/8 Rick Jones &lt;rick@activeservice.co.uk&gt;:<br>
&brvbar; &gt; Is there a Windows string function that expands escape sequences such as %n,<br>
&brvbar; &gt; %t, etc, and which is replicated by Wine?<br>
&brvbar; <br>
&brvbar; 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>
&brvbar; &gt; I ask because I have a Windows app that is screwing up because of something<br>
&brvbar; &gt; like this. It has a private .ini settings file, and some settings are stored<br>
&brvbar; &gt; in that kind of format, but when it runs on Wine they are wrongly retrieved<br>
&brvbar; &gt; (this is a 3rd party app, I don't have the source).<br>
&brvbar; &gt;<br>
&brvbar; &gt; It looks horribly like %n is being expanded to NL instead of CR-NL. If<br>
&brvbar; &gt; there's a Windows/Wine function for this then I might be able to use a<br>
&brvbar; &gt; native DLL to get round it, but I've no idea where it might reside! AFAIK<br>
&brvbar; &gt; GetPrivateProfileString() doesn't do this expansion inherently.<br>
&brvbar; &gt;<br>
&brvbar; &gt; Also if it is the case that the behaviour's different, then I would say it's<br>
&brvbar; &gt; a Wine bug.<br>
&brvbar; &gt;<br>
&brvbar; &gt; Any ideas appreciated.<br>
&brvbar; <br>
&brvbar; -- <br>
&brvbar; Rob Shearman<br>
&brvbar; </font><br>
<br>
<br>


</BODY>

</HTML>