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 | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/sman/session.c b/src/sman/session.c index 2a64dbc2..42c0ada4 100644 --- a/src/sman/session.c +++ b/src/sman/session.c @@ -466,13 +466,13 @@ fprintf(stderr,"rd=%u]\n",*((long *)rd.fds_bits)); int main(void) { - + using namespace OpenAxiom; #ifdef DEBUG2 /* delay for attaching with debugger before interesting things happen */ openaxiom_sleep(30); #endif - putenv("LC_ALL=C"); + oa_setenv("LC_ALL", "C"); setlocale(LC_ALL, ""); /* spad_server connects to Lisp server socket read_SpadServer_command handles requests */ diff --git a/src/sman/sman.c b/src/sman/sman.c index bddbdfc3..1b2a243a 100644 --- a/src/sman/sman.c +++ b/src/sman/sman.c @@ -776,7 +776,7 @@ main(int argc, char *argv[]) command.root_dir = get_systemdir(argc, argv); process_options(&command, argc, argv); - putenv((char*) "LC_ALL=C"); + oa_setenv("LC_ALL", "C"); setlocale(LC_ALL, ""); bsdSignal(SIGINT, SIG_IGN,RestartSystemCalls); init_term_io(); diff --git a/src/sman/spadclient.c b/src/sman/spadclient.c index dd1d6722..8d23e1d4 100644 --- a/src/sman/spadclient.c +++ b/src/sman/spadclient.c @@ -63,7 +63,8 @@ inter_handler(int sig) int main(void) { - putenv("LC_ALL=C"); + using namespace OpenAxiom; + oa_setenv("LC_ALL", "C"); setlocale(LC_ALL, ""); sock = connect_to_local_server(SessionServer, InterpWindow, Forever); bsdSignal(SIGINT, inter_handler,RestartSystemCalls); |