cdesktopenv/cde/programs/dtudcfonted
Lev Kujawski a6ea2a2d52 Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-06-02 19:55:15 -06:00
..
dtaddcpf Fixes for a few -Wincompatible-pointer-types 2019-10-12 22:29:44 +02:00
dtbdftocpf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
dtcpftobdf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
dtcpftogpf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
dtcpgpf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
dtgpftobdf Fixes for a few -Wincompatible-pointer-types 2019-10-12 22:29:44 +02:00
dtgpftocpf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
dtlsgpf Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
include Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
libfal Fixes for a few -Wincompatible-pointer-types 2019-10-12 22:29:44 +02:00
libfuty Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
pixmaps Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
resource Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
Imakefile Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
README Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
code.c Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
comsub.c Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
cpyw.c Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
cpyx.c Centralize catgets() calls through MsgCat 2021-06-02 19:55:15 -06:00
dtudcfonted.1 Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
dtudcfonted.msg Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
fssxeg.h Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
mtfgui.c dtudcfonted: Resolve GCC 10 errors about multiple definitions of global variables 2020-11-24 03:16:50 +00:00
selectx.c Centralize catgets() calls through MsgCat 2021-06-02 19:55:15 -06:00
selectxlfd.h Refactor and reimplement dtudcfonted 2018-08-18 16:37:36 -06:00
ufont.c dtudcfonted: Resolve GCC 10 errors about multiple definitions of global variables 2020-11-24 03:16:50 +00:00
ufontrsrc.h Revert "dtudcfonted, dtudcexch: delete from repository" 2018-08-18 16:37:36 -06:00
util.c Fix to different compile warnings. 2019-10-10 19:59:40 +02:00
util.h Fix to different compile warnings. 2019-10-10 19:59:40 +02:00
xoakufont.h dtudcfonted: Resolve GCC 10 errors about multiple definitions of global variables 2020-11-24 03:16:50 +00:00
xutil.c Centralize catgets() calls through MsgCat 2021-06-02 19:55:15 -06:00

README

$XConsortium: README /main/3 1996/07/04 02:23:02 cde-fuj $
UDC font editor and UDC data exchange utility README


1) Environment

1.1) XLOCALEDIR environment variable

	- If the NLS database ("XLC_LOCALE" files) locates
	in different directory from where specified at building
	time, set the full path name of the correct directory to
	the XLOCALEDIR environment variable.

1.2) Editable Fonts

	- Currently, only jisx0208 fonts in Japanese locale is
	defined in NLS database to have UDC. So the dtudcfonted
	will not show the edit view in other locales than Japanese.

	- If the "fonts.list" file exists in the directories showed
	below, dtudcfonted and dtudcexch read and get directories
	from this file to search fonts.

		/usr/dt/config/
		/usr/dt/config/$LANG
		$DTUDCFONTS/
		$DTUDCFONTS/$LANG

	- If the system place fonts in different directories other
	than listed in this file, you need to add them in it.