Reference

XCloseIM(3) on Linux

The text c4a9a602de74, as Debian 7 (Wheezy) shipped it.

open, close, and obtain input method information

XCloseIM(3) on Linux now