diff options
Diffstat (limited to 'src/sman')
-rw-r--r-- | src/sman/session.c | 4 | ||||
-rw-r--r-- | src/sman/sman.c | 2 | ||||
-rw-r--r-- | src/sman/spadclient.c | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/sman/session.c b/src/sman/session.c index 7cbc375a..0af2581d 100644 --- a/src/sman/session.c +++ b/src/sman/session.c @@ -2,7 +2,7 @@ Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd. All rights reserved. - Copyright (C) 2007, Gabriel Dos Reis. + Copyright (C) 2007-2009, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -42,6 +42,7 @@ #include <stdio.h> #include <string.h> #include <signal.h> +#include <locale.h> #include "open-axiom.h" #include "sockio.h" @@ -469,6 +470,7 @@ main(void) openaxiom_sleep(30); #endif + setlocale(LC_ALL, ""); /* spad_server connects to Lisp server socket read_SpadServer_command handles requests */ spad_server = connect_to_local_server(SpadServer, SessionManager, Forever); diff --git a/src/sman/sman.c b/src/sman/sman.c index 252778eb..f48eb207 100644 --- a/src/sman/sman.c +++ b/src/sman/sman.c @@ -44,6 +44,7 @@ #include <sys/time.h> #include <sys/wait.h> #include <signal.h> +#include <locale.h> #include "open-axiom.h" #include "sockio.h" @@ -782,6 +783,7 @@ main(int argc, char *argv[],char *envp[]) command.root_dir = openaxiom_get_systemdir(argc, argv); process_options(&command, argc, argv); + setlocale(LC_ALL, ""); bsdSignal(SIGINT, SIG_IGN,RestartSystemCalls); init_term_io(); init_spad_process_list(); diff --git a/src/sman/spadclient.c b/src/sman/spadclient.c index f848ac80..24194fe7 100644 --- a/src/sman/spadclient.c +++ b/src/sman/spadclient.c @@ -1,7 +1,7 @@ /* Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2008, Gabriel Dos Reis. + Copyright (C) 2007-2009, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include "sockio.h" #include "com.h" #include "bsdsignal.h" +#include <locale.h> #include "sockio.h" @@ -59,6 +60,7 @@ inter_handler(int sig) int main(void) { + setlocale(LC_ALL, ""); sock = connect_to_local_server(SessionServer, InterpWindow, Forever); bsdSignal(SIGINT, inter_handler,RestartSystemCalls); remote_stdio(sock); |