aboutsummaryrefslogtreecommitdiff
path: root/src/hyper
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-05-14 13:31:16 +0000
committerdos-reis <gdr@axiomatics.org>2009-05-14 13:31:16 +0000
commitcdb5cbfed6119715bb5871256007e15bd2d212c5 (patch)
tree09f424fd27f9907203d11294b2de03a7643980f0 /src/hyper
parent83b8aa234c1734f0533f0665cb9fe96a14730727 (diff)
downloadopen-axiom-cdb5cbfed6119715bb5871256007e15bd2d212c5.tar.gz
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.
Diffstat (limited to 'src/hyper')
-rw-r--r--src/hyper/ex2ht.c1
-rw-r--r--src/hyper/htadd.c2
-rw-r--r--src/hyper/hthits.c1
-rw-r--r--src/hyper/hyper.c2
-rw-r--r--src/hyper/spadbuf.c1
5 files changed, 7 insertions, 0 deletions
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(&reg_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");