From cdb5cbfed6119715bb5871256007e15bd2d212c5 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 14 May 2009 13:31:16 +0000 Subject: 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. --- src/hyper/ex2ht.c | 1 + src/hyper/htadd.c | 2 ++ src/hyper/hthits.c | 1 + src/hyper/hyper.c | 2 ++ src/hyper/spadbuf.c | 1 + 5 files changed, 7 insertions(+) (limited to 'src/hyper') 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 #include #include +#include #include #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 #include #include +#include #include #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"); -- cgit v1.2.3