Files
mcde/programs/dtwm
lotherk 067b95ecb3 dtwm: UTF-8 window titles in the IRIX face
The title was drawn from an XmString with the client fontList, a single X
font: under LC_CTYPE=C a UTF-8 _NET_WM_NAME became the JIS bytes "FJK\" and
the umlaut was dropped (measured 2026-11-22 on the MacBook; xmessage with
_NET_WM_NAME "Grüße 日本").

The title has its own XFontSet now -- the reference's Helvetica 14 bold
oblique with an ISO10646 fallback -- and DrawWindowTitle draws the UTF-8 text
with Xutf8DrawString, clearing the box first so a character the set cannot
draw leaves no old glyph behind.  The text comes from _NET_WM_NAME when the
client sets it (the atoms are interned even when EWMH is off) and from
WM_NAME otherwise, converted from compound text with _XmStringUngenerate;
titleUtf8 is freed with the client and zeroed when the ClientData is
allocated (XtMalloc, not XtCalloc -- the first version crashed on the
garbage).

0010.language gives a session without a language LC_CTYPE=C.UTF-8: XCreateFontSet
builds for the locale, and in C the set had only ASCII (font set test:
"Grüße" 17 px instead of 43, 10 fonts instead of 1).

Measured: make -C programs/dtwm rc=0, 0 errors; the MacBook title bar reads
"Grüße" in the IRIX face.
2026-11-22 17:32:34 +01:00
..

Conditional Compilation 
-----------------------

The following is a listing of the conditional compilation switches that
are "not obvious." Excluded are hardware or OS identifiers (e.g. __ultrix),
header file include flags, and macros (e.g. ABS).

    DEBUG
	Turns on code that prints out error messages (specifically
	protocol errors).

    DEBUGGER
	Turns on code to help debugging Help-on-item.

    DEBUG_ICON_BOX
	Turns on code that alters iconbox spacing to help debug iconbox.
	(?)

    DEBUG_RESOURCE_DATABASE
	Turns on code that dumps out dtwm's local resource database 
	to aid in debugging resource problems.

    DEBUG_SESSION_HINTS
	If defined, the session hints property is left on the root
	window after being read. Normally, it is deleted.

    ICCC_COMPLIANT
        This enables stricter ICCCM compliance. Specifically, some
	clients didn't get WM_PROTOCOLS quite right.

    INTEGRATION_TESTING_
	Swaps assignment of black and white on wait state cursor as
	a quick indicator of which client is showing the wait state.

    LARGECURSORS
	Allows cursors larger than 16x16.

    MESSAGE_CAT
	Enables message catalog code for local language support.

    MOTIF_DEFAULT_ICON
	Enables the default window icon with four buttons.

    OLD_CODE
	Vestigal code.

    R2_COMPAT
	Enables support for old clients that still pass window geometry
	hint information in WM_NORMAL_HINTS.

    UNMAP_ON_RESTART
	All windows are unmapped on restart.