summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-28 14:30:50 +0000
committerache <ache@FreeBSD.org>1995-10-28 14:30:50 +0000
commit7b27d202bdb399f2adcb28bf30b22344b83fddc1 (patch)
tree1fae19eafc4dfa9d50d58e48d03e2f6247c26ab4 /gnu
parent29cf56813b55c35d0398561d477ca9afe470c191 (diff)
downloadFreeBSD-src-7b27d202bdb399f2adcb28bf30b22344b83fddc1.zip
FreeBSD-src-7b27d202bdb399f2adcb28bf30b22344b83fddc1.tar.gz
Add setlocale LC_CTYPE
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/groff/libgroff/cmap.cc6
-rw-r--r--gnu/usr.bin/groff/libgroff/cset.cc6
2 files changed, 12 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/libgroff/cmap.cc b/gnu/usr.bin/groff/libgroff/cmap.cc
index 640f4bf..7c35253 100644
--- a/gnu/usr.bin/groff/libgroff/cmap.cc
+++ b/gnu/usr.bin/groff/libgroff/cmap.cc
@@ -19,6 +19,9 @@ with groff; see the file COPYING. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <ctype.h>
+#ifdef __FreeBSD__
+#include <locale.h>
+#endif
#include "cmap.h"
cmap cmlower(CMAP_BUILTIN);
@@ -49,6 +52,9 @@ cmap_init::cmap_init()
if (initialised)
return;
initialised = 1;
+#ifdef __FreeBSD__
+ (void) setlocale(LC_CTYPE, "");
+#endif
for (int i = 0; i <= UCHAR_MAX; i++) {
cmupper.v[i] = ISASCII(i) && islower(i) ? toupper(i) : i;
cmlower.v[i] = ISASCII(i) && isupper(i) ? tolower(i) : i;
diff --git a/gnu/usr.bin/groff/libgroff/cset.cc b/gnu/usr.bin/groff/libgroff/cset.cc
index 1319aa7..c720d1b 100644
--- a/gnu/usr.bin/groff/libgroff/cset.cc
+++ b/gnu/usr.bin/groff/libgroff/cset.cc
@@ -19,6 +19,9 @@ with groff; see the file COPYING. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <ctype.h>
+#ifdef __FreeBSD__
+#include <locale.h>
+#endif
#include "cset.h"
cset csalpha(CSET_BUILTIN);
@@ -86,6 +89,9 @@ cset_init::cset_init()
if (initialised)
return;
initialised = 1;
+#ifdef __FreeBSD__
+ (void) setlocale(LC_CTYPE, "");
+#endif
for (int i = 0; i <= UCHAR_MAX; i++) {
csalpha.v[i] = ISASCII(i) && isalpha(i);
csupper.v[i] = ISASCII(i) && isupper(i);
OpenPOWER on IntegriCloud