summaryrefslogtreecommitdiff
path: root/src/devices/grotty
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/grotty')
-rw-r--r--src/devices/grotty/Makefile.sub2
-rw-r--r--src/devices/grotty/tty.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/grotty/Makefile.sub b/src/devices/grotty/Makefile.sub
index 2ec77a54..0b5c6b25 100644
--- a/src/devices/grotty/Makefile.sub
+++ b/src/devices/grotty/Makefile.sub
@@ -1,6 +1,6 @@
PROG=grotty$(EXEEXT)
MAN1=grotty.n
-XLIBS=$(LIBDRIVER) $(LIBGROFF)
+XLIBS=$(LIBDRIVER) $(LIBGROFF) $(LIBGNU)
MLIB=$(LIBM)
OBJS=tty.$(OBJEXT)
CCSRCS=$(srcdir)/tty.cpp
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index 0ea7969e..87654107 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -871,6 +871,7 @@ int main(int argc, char **argv)
if (getenv("GROFF_NO_SGR"))
old_drawing_scheme = 1;
setbuf(stderr, stderr_buf);
+ setlocale(LC_CTYPE, "");
int c;
static const struct option long_options[] = {
{ "help", no_argument, 0, CHAR_MAX + 1 },