From 03acaa03a966d86de9a4af01ec855647a4e11a9e Mon Sep 17 00:00:00 2001 From: Isaiah Norton Date: Sun, 22 Feb 2015 14:08:31 -0500 Subject: [PATCH] Call uv_setup_args at startup, fixes #9957 --- test/misc.jl | 8 ++++++++ ui/repl.c | 1 + 2 files changed, 9 insertions(+) diff --git a/test/misc.jl b/test/misc.jl index ca6939775e9e3..4be9739caf23e 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -105,3 +105,11 @@ let deepthought(x, y) = 42 @test ex.msg == "the answer to the ultimate question: 42" end end + +let # test the process title functions, issue #9957 + oldtitle = Base.get_process_title() + Base.set_process_title("julia0x1") + @test Base.get_process_title() == "julia0x1" + Base.set_process_title(oldtitle) + @test Base.get_process_title() == oldtitle +end diff --git a/ui/repl.c b/ui/repl.c index a8c9bfb8247bb..a74fa379bf766 100644 --- a/ui/repl.c +++ b/ui/repl.c @@ -472,6 +472,7 @@ DLLEXPORT extern void julia_save(); #ifndef _OS_WINDOWS_ int main(int argc, char *argv[]) { + uv_setup_args(argc, argv); // no-op on Windows #else int wmain(int argc, wchar_t *argv[], wchar_t *envp[]) {