Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue
I answered in the forum. Bart Aye, thanks for that. More information. I have now tried every combination of AnsiToUTF8(), UTF8ToAnsi(), SysToUTF8(), UTF8ToSys() and just simply FFilename in both TProcess and TProcessUTF8. All failed (and you can see my machine gun approach confirms my unicode ignorance). I'm strongly leaning towards the possibility that this isn't going to work until win\process.inc itself is upgraded to be unicode aware (ie use CreateProcessW, upgrade CommandToList, and possibly other fixes). If I'm correct, this takes this issue away from being LazUtils related. I'll do some tests on Linux this afternoon as I note that my problem might just be limited to Windows and I'll post a FPC bugtracker issue with a test case. I also note that this problem appears to be just limited to me, others report TProcessUTF8 working just fine for them (which makes a certain amount of sense, otherwise there would be related issues on the bugtracker) Mike T -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue
On 29/06/2014 11:08, Michael Thompson wrote: I'm strongly leaning towards the possibility that this isn't going to work until win\process.inc itself is upgraded to be unicode aware (ie use CreateProcessW, upgrade CommandToList, and possibly other fixes). I would suspect this to be the case, yes. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue
On 6/29/14, Reinier Olislagers reinierolislag...@gmail.com wrote: I'm strongly leaning towards the possibility that this isn't going to work until win\process.inc itself is upgraded to be unicode aware (ie use CreateProcessW, upgrade CommandToList, and possibly other fixes). I would suspect this to be the case, yes. At some point in time I have thougth about completely re-implementing TProcessUTF8 just for that reason but it would mean so much duplicate code (which is a nightmare for maintainers). And all this would then become obsolete once fpc 2.8 comes around So, I gave up. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue
At some point in time I have thougth about completely re-implementing TProcessUTF8 just for that reason but it would mean so much duplicate code (which is a nightmare for maintainers). And all this would then become obsolete once fpc 2.8 comes around So, I gave up. By 2am last night I was thinking similar thoughts. Had a quick bash at upgrading win\process.inc, reduced my fpc to a molten mess, also gave up :-) And in your case I don't think giving up is the correct conclusion. Waiting patiently may be a better description :-) I'm satisfied with the current state of affairs. That is, I understand it's not my code at fault and I'm happy to hear that plans for 2.8 include improved unicode awareness, so at this stage I'll just document this as an issue that users of the mplayer package need to be aware of. Also, if the fpc guys are working towards unicode awareness, I'll leave off the bugreport. I may have a opportunity for extended coding later in the year, in which case I may investigate further. I find tinkering with the various internals fascinating. But for now, I'm running out of time... Many thanks for everyone's time. Learning curves are always fun, but not for all parties... Mike T -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazUtils - TProcessUTF8 - UTF8 Parameters issue
I answered in the forum. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus