Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Corrupt output of printf
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-23 (13:16)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] (Not) corrupt output of printf
On Fri, Jan 23, 2009 at 11:20:35AM +0000, Dawid Toton wrote:
> This was actually a bug in GNOME Terminal... sorry for the noise.

Weird ... I was going to suggeest it was because you weren't flushing
the output after each print statement.  I usually do:

  printf "something\n%!"

(the %! forces a flush of the output channel).


Richard Jones
Red Hat