Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-03 Thread Graham Whelan
On 2 March 2011 15:10, pancake panc...@youterm.com wrote: Yes. It is a bug. Please report it :) Okay created bug #643824. https://bugzilla.gnome.org/show_bug.cgi?id=643824 ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-02 Thread pancake
Yes. It is a bug. Please report it :) Btw.. When are the opened bugs going to be reviewed and commited? I can count many ready-to-commit bugreports. On 02/03/2011, at 12:21, Graham Whelan gawhe...@gmail.com wrote: On 1 March 2011 19:58, Graham Whelan gawhe...@gmail.com wrote: On 1 March 2011

[Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-01 Thread Graham Whelan
Hi, I'm trying to copy a file using GLib.InputStream and GLib.OutputStream but the copied file ends up corrupted. Sample code: uint8 buffer[4096]; size_t read; while (true) { read = input.read (buffer); if (read 0) { output.write (buffer); } else {

Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-01 Thread Jürg Billeter
On Tue, 2011-03-01 at 18:21 +, Graham Whelan wrote: I'm trying to copy a file using GLib.InputStream and GLib.OutputStream but the copied file ends up corrupted. Sample code: uint8 buffer[4096]; size_t read; while (true) { read = input.read (buffer); if (read 0) {

Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-01 Thread Graham Whelan
On 1 March 2011 18:29, Jürg Billeter j...@bitron.ch wrote: On Tue, 2011-03-01 at 18:21 +, Graham Whelan wrote: I'm trying to copy a file using GLib.InputStream and GLib.OutputStream but the copied file ends up corrupted. Sample code: uint8 buffer[4096]; size_t read; while (true) {    

Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-01 Thread Frederik
On 03/01/2011 07:21 PM, Graham Whelan wrote: Hi, I'm trying to copy a file using GLib.InputStream and GLib.OutputStream but the copied file ends up corrupted. Sample code: uint8 buffer[4096]; size_t read; while (true) { read = input.read (buffer); if (read 0) {