# MWM default-menu allocation

MWM assembles the localized default system menu before copying it into the resource string used by the menu parser. If the measured temporary buffer is not representable in Xt's `Cardinal` width or cannot be allocated, initialization now warns and falls back to the built-in system-menu definition instead of formatting through null storage. That fallback does not allocate, so it remains available when the localized allocation itself failed. Successful localized menus are unchanged.

`tests/automated/check-mwm-default-menu-allocation.py` protects this contract.
