Reference

XCloseIM(3) on Linux

The text 9685c36e7bf5, as Debian 9 (Stretch) shipped it.

open, close, and obtain input method information

XCloseIM(3) on Linux now