Print X display and locale of X Input Method in the debug log.