From 60e85fcaf3107897c24b8d1bd72221d3f08861bc Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 18 Jun 2017 08:42:54 -0600 Subject: [PATCH] rktio: document 'replace and 'replace/truncate changes --- pkgs/racket-doc/scribblings/reference/file-ports.scrbl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/reference/file-ports.scrbl b/pkgs/racket-doc/scribblings/reference/file-ports.scrbl index 40f743f545..39cbe0a871 100644 --- a/pkgs/racket-doc/scribblings/reference/file-ports.scrbl +++ b/pkgs/racket-doc/scribblings/reference/file-ports.scrbl @@ -207,7 +207,12 @@ then @exnraise[exn:fail:filesystem:errno]. (define out (open-output-file some-file)) (write "hello world" out) (close-output-port out) -]} +] + +@history[#:changed "6.9.0.6" @elem{On Unix and Mac OS, make @racket['truncate/replace] + replace on a permission error. On Windows, make + @racket['replace] always replace instead truncating + like @racket['truncate/replace].}]} @defproc[(open-input-output-file [path path-string?] [#:mode mode-flag (or/c 'binary 'text) 'binary]