Lubos Pintes wrote:
Hello,
I have a text in the WideString variable. I want to send this text to a SAPI5 synthesizer. I am doing this as follows:
WideStr := Format('<pitch absmiddle="%d">%s</pitch>', [Pitch, Text]);
Pitch is integer, Text is WideString.
The result is incorrect, only a half of the Text contents is copied to the result.
Tested with Free Pascal Compiler version 3.1.1 [2015/11/14] for i386
Thanks

What happens if the format string is put into a temporary widestring?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to