From 056041bd0782c12782bdef6a2ee936809d4e5076 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 22 Mar 2017 12:22:55 -0600 Subject: [PATCH] document `current-command-line-arguments` encoding Closes #1641 --- pkgs/racket-doc/scribblings/reference/runtime.scrbl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/reference/runtime.scrbl b/pkgs/racket-doc/scribblings/reference/runtime.scrbl index 87bb09e5b7..3ac8b03235 100644 --- a/pkgs/racket-doc/scribblings/reference/runtime.scrbl +++ b/pkgs/racket-doc/scribblings/reference/runtime.scrbl @@ -152,7 +152,12 @@ ends with a newline.} A @tech{parameter} that is initialized with command-line arguments when Racket starts (not including any command-line arguments that were -treated as flags for the system).} +treated as flags for the system). + +On Unix and Mac OS, command-line arguments are provided to the +Racket process as @tech{byte strings}. The arguments are converted to +@tech{strings} using @racket[bytes->string/locale] and +@racketvalfont{#\uFFFD} as the encoding-error character.} @defparam[current-thread-initial-stack-size size exact-positive-integer?]{