From 5195c5d7bf8df5478fce6714ea89844e9e228175 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Mon, 21 Jul 2003 11:45:20 +0000 Subject: [PATCH] * 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. --- ChangeLog | 11 +++++++++++ PROBLEMS | 18 ++++++++++++++++++ aclocal.m4 | 9 +++++---- configure | 5 +++-- src/include/config.hin | 2 +- src/libs/libgroff/strerror.c | 4 +++- 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 + + * 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 + + * PROBLEMS: Add solution for UTF-8 problem with hyphens. + 2003-07-18 Werner LEMBERG * *.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 or ]) +[AC_MSG_CHECKING([for sys_errlist[] in , , or ]) AC_TRY_COMPILE([#include -#include ], +#include +#include ], [int k; k = (int)sys_errlist[0];], AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_ERRLIST, 1, - [Define if you have sys_errlist in - or in .]), + [Define if you have sys_errlist in , + , or .]), 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 or " >&5 -echo $ECHO_N "checking for sys_errlist in or ... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for sys_errlist in , , or " >&5 +echo $ECHO_N "checking for sys_errlist in , , or ... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" #include #include +#include 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 header file. */ #undef HAVE_SYS_DIR_H -/* Define if you have sys_errlist in or in . */ +/* Define if you have sys_errlist in , , or . */ #undef HAVE_SYS_ERRLIST /* Define if you have sysnerr in or . */ 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 +#include /* for MinGW */ #define INT_DIGITS 19 /* enough for 64 bit integer */ -- 2.11.4.GIT