diff options
-rw-r--r-- | src/ChangeLog | 14 | ||||
-rw-r--r-- | src/clef/edible.c | 1 | ||||
-rw-r--r-- | src/driver/main.c | 1 | ||||
-rw-r--r-- | src/hyper/ex2ht.c | 1 | ||||
-rw-r--r-- | src/hyper/htadd.c | 2 | ||||
-rw-r--r-- | src/hyper/hthits.c | 1 | ||||
-rw-r--r-- | src/hyper/hyper.c | 2 | ||||
-rw-r--r-- | src/hyper/spadbuf.c | 1 | ||||
-rw-r--r-- | src/sman/session.c | 1 | ||||
-rw-r--r-- | src/sman/sman.c | 1 | ||||
-rw-r--r-- | src/sman/spadclient.c | 2 |
11 files changed, 27 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index da8ab9f6..555b23b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,17 @@ +2009-05-14 Michael Becker <Michael.Becker@coconet.de> + + Fix SF/2790725 (take 2) + * driver/main.c (main): Set LC_ALL to C. + * hyper/ex2ht.c (main): Likewise. + * hyper/htadd.c (main): Likewise. + * hyper/hthits.c (main): Likewise. + * hyper/hyper.c (main): Likewise. + * hyper/spadbuf.c (main): Likewise. + * clef/edible.c (main): Likewise. + * sman/session.c (main): Likewise. + * sman/sman.c (main): Likewise. + * sman/spadclient.c (main): Likewise. + 2009-05-14 Gabriel Dos Reis <gdr@cs.tamu.edu> * algebra/kl.spad.pamphlet (SortedCache): Use Reference List S. diff --git a/src/clef/edible.c b/src/clef/edible.c index e6ec4943..a1270eef 100644 --- a/src/clef/edible.c +++ b/src/clef/edible.c @@ -129,6 +129,7 @@ main(int argc, char *argv[]) + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); /* try to get a pseudoterminal to play with */ if (ptyopen(&contNum, &serverNum, serverPath) == -1) { diff --git a/src/driver/main.c b/src/driver/main.c index dd2a040f..eb0a3dcb 100644 --- a/src/driver/main.c +++ b/src/driver/main.c @@ -76,6 +76,7 @@ main(int argc, char* argv[]) openaxiom_driver driver = openaxiom_preprocess_arguments(&command, argc, argv); + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); switch (driver) { case openaxiom_null_driver: diff --git a/src/hyper/ex2ht.c b/src/hyper/ex2ht.c index fb667e3e..48556777 100644 --- a/src/hyper/ex2ht.c +++ b/src/hyper/ex2ht.c @@ -267,6 +267,7 @@ main(int argc, char **argv) { int i; + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); if (argc == 1) { fprintf(stderr, "usage: %s exfile.ht ...\n", argv[0]); diff --git a/src/hyper/htadd.c b/src/hyper/htadd.c index 46a01416..d289fea0 100644 --- a/src/hyper/htadd.c +++ b/src/hyper/htadd.c @@ -43,6 +43,7 @@ #include <setjmp.h> #include <stdlib.h> #include <sys/stat.h> +#include <stdlib.h> #include <locale.h> #include "cfuns.h" @@ -96,6 +97,7 @@ main(int argc, char **argv) char **fnames = filenames; short flag; /* flag for deleting or adding */ + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); parse_args(argv, db_dir, filenames, &flag); diff --git a/src/hyper/hthits.c b/src/hyper/hthits.c index 21223b25..f1f23ba3 100644 --- a/src/hyper/hthits.c +++ b/src/hyper/hthits.c @@ -413,6 +413,7 @@ cmdline(int argc, char** argv) int main(int argc, char** argv) { + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); cmdline(argc, argv); regcomp(®_pattern, pattern, REG_NEWLINE); diff --git a/src/hyper/hyper.c b/src/hyper/hyper.c index 94ce1ab5..9c24c30f 100644 --- a/src/hyper/hyper.c +++ b/src/hyper/hyper.c @@ -56,6 +56,7 @@ #include <sys/wait.h> #include <setjmp.h> #include <X11/cursorfont.h> +#include <stdlib.h> #include <locale.h> #include "keyin.h" @@ -195,6 +196,7 @@ main(int argc, char **argv) /* Initialize some global values */ /* fprintf(stderr,"hyper:main:entered\n");*/ + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); gArgc = argc; gArgv = argv; diff --git a/src/hyper/spadbuf.c b/src/hyper/spadbuf.c index accf962c..f4da10fb 100644 --- a/src/hyper/spadbuf.c +++ b/src/hyper/spadbuf.c @@ -221,6 +221,7 @@ main(int argc,char ** argv) * spadbuf page_name [completion_ files] * */ + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); if (argc < 2) { fprintf(stderr, "Usage : spadbuf page_name [completion_files] \n"); diff --git a/src/sman/session.c b/src/sman/session.c index 0af2581d..999dc367 100644 --- a/src/sman/session.c +++ b/src/sman/session.c @@ -470,6 +470,7 @@ main(void) openaxiom_sleep(30); #endif + putenv("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 f48eb207..0b2cc8e6 100644 --- a/src/sman/sman.c +++ b/src/sman/sman.c @@ -783,6 +783,7 @@ main(int argc, char *argv[],char *envp[]) command.root_dir = openaxiom_get_systemdir(argc, argv); process_options(&command, argc, argv); + putenv("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 24194fe7..7d61a296 100644 --- a/src/sman/spadclient.c +++ b/src/sman/spadclient.c @@ -38,6 +38,7 @@ #include <stdio.h> #include <signal.h> +#include <stdlib.h> #include "openaxiom-c-macros.h" #include "sockio.h" @@ -60,6 +61,7 @@ inter_handler(int sig) int main(void) { + putenv("LC_ALL=C"); setlocale(LC_ALL, ""); sock = connect_to_local_server(SessionServer, InterpWindow, Forever); bsdSignal(SIGINT, inter_handler,RestartSystemCalls); |