Interesting. I thought that SetString is properly overloaded. Maybe it
is, maybe not. But anyway I fixed the program by using
WideStr := PWideChar(@WideCharArray[Index]);
Thus ignoring badly-working SetString.
Anyway thank for all responses!
Dňa 24. 12. 2015 o 14:23 Michael Van Canneyt napísal(a
On 12/24/2015 07:44 AM, Lubos Pintes wrote:
Hello,
Here is a minimal program, it doesn't work as I expected either because there is
a bug somewhere in the RTL, or, more probably, I misunderstood something.
Basically, I am reading an UTF-8 encoded text from stdin, and collecting it in a
WideChar a
On Thu, 24 Dec 2015, Lubos Pintes wrote:
Hello,
Here is a minimal program, it doesn't work as I expected either because
there is a bug somewhere in the RTL, or, more probably, I misunderstood
something.
Basically, I am reading an UTF-8 encoded text from stdin, and collecting
it in a WideCha
Hello,
Here is a minimal program, it doesn't work as I expected either because
there is a bug somewhere in the RTL, or, more probably, I misunderstood
something.
Basically, I am reading an UTF-8 encoded text from stdin, and collecting
it in a WideChar array. I am assigning UTF-8 string to a Wid
On Wed, Dec 23, 2015 at 6:35 AM, 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('%s', [Pitch, Text]);
[...]
Assuming that you tested it on Windows, you can't copy a Ansi
Lubos Pintes wrote:
Hello Mark,The result isthe same, I tried it before I wrote my message.I
even tried to temporarily write ordinal codes of characters, it seems
that a string is not automatically converted to a WideString when
assigned, there wereno zeros, like H#0e#0l#0, etc.
Dňa 23. 12. 201
On Wed, December 23, 2015 11:41, Lubos Pintes wrote:
Hello Lubos,
> The result isthe same, I tried it before I wrote my message.
> I even tried to temporarily write ordinal codes of characters, it seems
> that a string is not automatically converted to a WideString when
> assigned, there wereno
On Wed, 23 Dec 2015, Lubos Pintes wrote:
I tried it now, and it doesn't work.
I also tried all string variables changed to WideString.
In that case, please file a bugreport with an example console program for
FPC.
Michael.
y
___
fpc-pascal maillis
I tried it now, and it doesn't work.
I also tried all string variables changed to WideString.
Dňa 23. 12. 2015 o 11:59 Michael Van Canneyt napísal(a):
On Wed, 23 Dec 2015, Lubos Pintes wrote:
Hello Mark,
The result isthe same, I tried it before I wrote my message.
I even tried to temporarily
On Wed, 23 Dec 2015, Lubos Pintes wrote:
Hello Mark,
The result isthe same, I tried it before I wrote my message.
I even tried to temporarily write ordinal codes of characters, it seems
that a string is not automatically converted to a WideString when
assigned, there wereno zeros, like H#0e#
Hello Mark,
The result isthe same, I tried it before I wrote my message.
I even tried to temporarily write ordinal codes of characters, it seems
that a string is not automatically converted to a WideString when
assigned, there wereno zeros, like H#0e#0l#0, etc.
Dňa 23. 12. 2015 o 11:07 Mark Mo
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('%s', [Pitch, Text]);
Pitch is integer, Text is WideString.
The result is incorrect, only a half of the Text contents is copied to
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('%s', [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
13 matches
Mail list logo