Solaris 10 x86 seems to have double-dead keys for circumflex. The first event has to be ignored, the second one is the real one. The same for other accents. See below:
# Overlaps with Sun Xorg server double-dead keys
SunFA_Circum 0x1a inhibit
SunFA_Diaeresis 0x1a shift inhibit
SunFA_Tilde 0x35 altgr inhibit
Then the parser could be improved to handle whitespace at the end of a line more gracefully.
Alternativly apply the patch below.
Reproduceable on Solaris 10 x86 u4 (August 2007 release)