broken KProcess in HEAD

Waldo Bastian bastian at kde.org
Sat Jul 19 16:02:45 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 19 July 2003 16:20, Oswald Buddenhagen wrote:
> - the way you collect output is relatively broken. you fromLocal8Bit
>   every chunk separately - this will break if the program emits lots of
>   utf8. you have to accumulate first and then do the conversion and split
>   the lines.

You can also accumulate, split in lines and then do the conversion. That way 
you will be able to process your data when you have a full line available.

KProcIO may help you with that.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/GV2VN4pvrENfboIRAuuBAJoD7jSw5o3fcqJXhokP+SPzj8wXRgCdFU3S
pqCHXGqjgGGP7ZIdAWwSsf8=
=HB7l
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list