Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Posts: 1981 Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany
Post
by c4s » Wed Apr 21, 2010 7:31 pm
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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
ts-soft
Always Here
Posts: 5756 Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany
Post
by ts-soft » Wed Apr 21, 2010 7:53 pm
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!
c4s
Addict
Posts: 1981 Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany
Post
by c4s » Wed Apr 21, 2010 8:14 pm
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().
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
ts-soft
Always Here
Posts: 5756 Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany
Post
by ts-soft » Wed Apr 21, 2010 8:28 pm
So it's a Feature Request for optional stringformat parameter.
freak
PureBasic Team
Posts: 5940 Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany
Post
by freak » Wed Apr 21, 2010 9:01 pm
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.
quidquid Latine dictum sit altum videtur
c4s
Addict
Posts: 1981 Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany
Post
by c4s » Wed Apr 21, 2010 9:14 pm
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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!