This is the mail archive of the cygwin-patches mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 0/3] catgets APIs, gencat tool

This adds FreeBSD-derived implementations to replace the glibc-derived
standalone implementation shipped in the catgets package. An integrated
implementation avoids the need to remember to install libcatgets-devel and
modify the build to link with -lcatgets.

The easiest way to test this is:

1) Uninstall catgets and libcatgets-devel.
2) Install Cygwin rebuilt with this patch, particularly the DLL, nl_types.h,
libcygwin.a, and gencat.exe
3) Rebuild tcsh.  The following should be seen during configure:

checking for gencat... /usr/bin/gencat
checking for library containing catgets... none required

And the resulting binary should show catclose/catgets/catopen imports from
cygwin1.dll, not cyggetcats1.dll.
4) Install this tcsh, then run an invalid command, e.g.:

$ LANG=fr_FR tcsh  -c '()'
Commande nulle incorrecte.

Yaakov Selkowitz (3):
  Guard langinfo.h nl_item from multiple typedefs
  cygwin: add catopen, catgets, catclose
  cygwin: add gencat tool

 newlib/libc/include/langinfo.h         |   3 +
 winsup/cygwin/              |   1 +
 winsup/cygwin/common.din               |   3 +
 winsup/cygwin/include/cygwin/version.h |   3 +-
 winsup/cygwin/include/nl_types.h       | 100 +++++
 winsup/cygwin/libc/msgcat.c            | 478 ++++++++++++++++++++++
 winsup/utils/               |   2 +-
 winsup/utils/gencat.c                  | 696 +++++++++++++++++++++++++++++++++
 8 files changed, 1284 insertions(+), 2 deletions(-)
 create mode 100644 winsup/cygwin/include/nl_types.h
 create mode 100644 winsup/cygwin/libc/msgcat.c
 create mode 100644 winsup/utils/gencat.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]