summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-07-21 11:45:17 +0000
committerwlemb <wlemb>2003-07-21 11:45:17 +0000
commit24cd83750ebc3de05932f5be3c33867f76735dc8 (patch)
tree868a98f2bc1c57e94d40d314b8f75cc54153dc49
parentb6f0076331b49e3d4b7ca8693cc8c295fdd2e825 (diff)
downloadgroff-24cd83750ebc3de05932f5be3c33867f76735dc8.tar.gz
* aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
* configure, src/include/config.hin: Regenerated. * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW. * PROBLEMS: Add solution for UTF-8 problem with hyphens.
-rw-r--r--ChangeLog11
-rw-r--r--PROBLEMS18
-rw-r--r--aclocal.m49
-rwxr-xr-xconfigure5
-rw-r--r--src/include/config.hin2
-rw-r--r--src/libs/libgroff/strerror.c4
6 files changed, 41 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f163415..2d3f1be4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-07-20 Werner LEMBERG <wl@gnu.org>
+
+ * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
+ * configure, src/include/config.hin: Regenerated.
+
+ * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
+
+2003-07-19 Werner LEMBERG <wl@gnu.org>
+
+ * PROBLEMS: Add solution for UTF-8 problem with hyphens.
+
2003-07-18 Werner LEMBERG <wl@gnu.org>
* *.man: Switch to non-compatibility mode temporarily if GNU
diff --git a/PROBLEMS b/PROBLEMS
index 26d98463..c7a996b8 100644
--- a/PROBLEMS
+++ b/PROBLEMS
@@ -90,6 +90,24 @@ and pager to versions which can handle SGR.
----------------------------------------------------------------------
+* The UTF-8 output of grotty has strange characters for the minus, the
+ hyphen, and the right quote. Why?
+
+The used Unicode characters (U+2212 for the minus sign and U+2010 for
+the hyphen) are the correct ones, but many programs can't search them
+properly. The same is true for the right quote (U+201D). To map those
+characters back to the ASCII characters, insert the following code
+snippet into the `troffrc' configuration file:
+
+.if '\*[.T]'utf8' \{\
+. char \- \N'45'
+. char - \N'45'
+. char ' \N'39'
+.\}
+
+
+----------------------------------------------------------------------
+
* My document says that the current year is 19100, not 2000.
In groff, as in traditional troff, the yr number register yields the
diff --git a/aclocal.m4 b/aclocal.m4
index 4b1b68ec..af9543e2 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -213,13 +213,14 @@ AC_LANG_POP(C++)])dnl
dnl
dnl
AC_DEFUN(GROFF_SYS_ERRLIST,
-[AC_MSG_CHECKING([for sys_errlist[] in <errno.h> or <stdio.h>])
+[AC_MSG_CHECKING([for sys_errlist[] in <errno.h>, <stdio.h>, or <stdlib.h>])
AC_TRY_COMPILE([#include <errno.h>
-#include <stdio.h>],
+#include <stdio.h>
+#include <stdlib.h>],
[int k; k = (int)sys_errlist[0];],
AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_ERRLIST, 1,
- [Define if you have sys_errlist in <errno.h>
- or in <stdio.h>.]),
+ [Define if you have sys_errlist in <errno.h>,
+ <stdio.h>, or <stdlib.h>.]),
AC_MSG_RESULT(no))])dnl
dnl
dnl
diff --git a/configure b/configure
index b6ad057e..f156ba37 100755
--- a/configure
+++ b/configure
@@ -4544,13 +4544,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:$LINENO: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
-echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
+echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
int
main ()
{
diff --git a/src/include/config.hin b/src/include/config.hin
index 13a3630d..923475aa 100644
--- a/src/include/config.hin
+++ b/src/include/config.hin
@@ -93,7 +93,7 @@
/* Define to 1 if you have the <sys/dir.h> header file. */
#undef HAVE_SYS_DIR_H
-/* Define if you have sys_errlist in <errno.h> or in <stdio.h>. */
+/* Define if you have sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>. */
#undef HAVE_SYS_ERRLIST
/* Define if you have sysnerr in <errno.h> or <stdio.h>. */
diff --git a/src/libs/libgroff/strerror.c b/src/libs/libgroff/strerror.c
index be2d1f3b..cc9482d0 100644
--- a/src/libs/libgroff/strerror.c
+++ b/src/libs/libgroff/strerror.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2003
+ Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -22,6 +23,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif
#include <stdio.h>
+#include <stdlib.h> /* for MinGW */
#define INT_DIGITS 19 /* enough for 64 bit integer */