[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: broken KProcess in HEAD
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-07-19 15:02:45
[Download RAW message or body]

-----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@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@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-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic