I see now where my description was wrong. I have a customised list of compose-key sequences. For this to work (rather than the default list) the XIM input method is necessary, and that causes the Unicode hex entry method to fail.