aboutsummaryrefslogtreecommitdiff
path: root/src/hyper
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-05-13 23:57:45 +0000
committerdos-reis <gdr@axiomatics.org>2009-05-13 23:57:45 +0000
commit38ca9f9d9e14fcf1e4e0b739cab19118d83ee295 (patch)
treec0ed8aa0a39caa11e84e444a846f5e599f7519c1 /src/hyper
parent7cd6515fa4babfdbe3484390440ba9dbe772a795 (diff)
downloadopen-axiom-38ca9f9d9e14fcf1e4e0b739cab19118d83ee295.tar.gz
Fix SF/2790725
* driver/main.c (main): Set locale to nothing. * 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.c2
-rw-r--r--src/hyper/htadd.c4
-rw-r--r--src/hyper/hthits.c4
-rw-r--r--src/hyper/hyper.c4
-rw-r--r--src/hyper/spadbuf.c8
5 files changed, 14 insertions, 8 deletions
diff --git a/src/hyper/ex2ht.c b/src/hyper/ex2ht.c
index b59e505e..fb667e3e 100644
--- a/src/hyper/ex2ht.c
+++ b/src/hyper/ex2ht.c
@@ -46,6 +46,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
+#include <locale.h>
#include "cfuns.h"
@@ -266,6 +267,7 @@ main(int argc, char **argv)
{
int i;
+ setlocale(LC_ALL, "");
if (argc == 1) {
fprintf(stderr, "usage: %s exfile.ht ...\n", argv[0]);
return (-1);
diff --git a/src/hyper/htadd.c b/src/hyper/htadd.c
index 62f7cd7c..46a01416 100644
--- a/src/hyper/htadd.c
+++ b/src/hyper/htadd.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 <setjmp.h>
#include <stdlib.h>
#include <sys/stat.h>
+#include <locale.h>
#include "cfuns.h"
#include "hash.h"
@@ -95,6 +96,7 @@ main(int argc, char **argv)
char **fnames = filenames;
short flag; /* flag for deleting or adding */
+ setlocale(LC_ALL, "");
parse_args(argv, db_dir, filenames, &flag);
if (!filenames[0]) {
diff --git a/src/hyper/hthits.c b/src/hyper/hthits.c
index 00b571f8..21223b25 100644
--- a/src/hyper/hthits.c
+++ b/src/hyper/hthits.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
@@ -60,6 +60,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <regex.h>
+#include <locale.h>
#include "cfuns.h"
@@ -412,6 +413,7 @@ cmdline(int argc, char** argv)
int
main(int argc, char** argv)
{
+ setlocale(LC_ALL, "");
cmdline(argc, argv);
regcomp(&reg_pattern, pattern, REG_NEWLINE);
handleHtdb();
diff --git a/src/hyper/hyper.c b/src/hyper/hyper.c
index b6315932..94ce1ab5 100644
--- a/src/hyper/hyper.c
+++ b/src/hyper/hyper.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
@@ -56,6 +56,7 @@
#include <sys/wait.h>
#include <setjmp.h>
#include <X11/cursorfont.h>
+#include <locale.h>
#include "keyin.h"
#include "initx.h"
@@ -194,6 +195,7 @@ main(int argc, char **argv)
/* Initialize some global values */
/* fprintf(stderr,"hyper:main:entered\n");*/
+ setlocale(LC_ALL, "");
gArgc = argc;
gArgv = argv;
gIsEndOfOutput = 1;
diff --git a/src/hyper/spadbuf.c b/src/hyper/spadbuf.c
index 98c1687a..accf962c 100644
--- a/src/hyper/spadbuf.c
+++ b/src/hyper/spadbuf.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
@@ -46,6 +46,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
+#include <locale.h>
#include "halloc.h"
#include "bsdsignal.h"
#include "sockio.h"
@@ -212,10 +213,6 @@ init_parent(void)
int
main(int argc,char ** argv)
{
- /*int name_found;*/
- /*FILE *junk;*/
- FILE *fopen();
-
/*
* Modified on 6/13/90 for the command line completion abiltities of
* Since I am only calling this program from within spadint, I decided
@@ -224,6 +221,7 @@ main(int argc,char ** argv)
* spadbuf page_name [completion_ files]
*
*/
+ setlocale(LC_ALL, "");
if (argc < 2) {
fprintf(stderr, "Usage : spadbuf page_name [completion_files] \n");
exit(-1);