Page 1 of 1

ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 7:31 pm
by c4s
I think those functions should work in unicode mode like in normal mode, right?

So there are some bugs when using unicode:
  • ReadProgramString() just displays one big string when the program has finished instead of several ones. (Here is a workaround.)
  • ReadProgramError() always returns nothing instead of...well, something. (No workaround found so far because ReadProgramData() doesn't work here.)
When not using unicode as the executable format everything works as expected with the started test program.

Re: ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 7:53 pm
by ts-soft
you have to run a unicode executable and it will work. if you run a ascii application with your unicode-application
you have use ReadProgramData.

No bug!

Re: ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 8:14 pm
by c4s
Yes, I'm running a nonunicode program from an unicode one.
Anyway I don't see a note in the help file that says something about unicode in the program library, so I expect that everything works as it is...

And ReadProgramData() works as a "replacement" for ReadProgramString() but not for ReadProgramError().

Re: ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 8:28 pm
by ts-soft
So it's a Feature Request for optional stringformat parameter.

Re: ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 9:01 pm
by freak
For the moment, a unicode program expects its input to be in unicode as well. An optional parameter to specify the input format is planned, but i don't know when it will be done.

Re: ReadProgramString() and ReadProgramError() with unicode

Posted: Wed Apr 21, 2010 9:14 pm
by c4s
Hm... so it looks like I have to use strange API code (at least for me) for now just to have unicode support in my application. :|

Well, good to know that it's planned.