When investigating I realized that the characters come from nobreakspaces. Apparently when using shift-space I insert nobreakspaces. After looking around a bit this should happen when I do CTRL-SHIFT-SPACE, but now it also does that with Shift-Space. Maybe something is wrong with my keyboard mappings, although everything else is working correctly. Any ideas of how to get rid of this behavior?
Here is a short text file shown in scite:
Code: Select all
NEW IN TOWN
NEWÂ INÂ TOWN
          Â
NEWÂ INÂ TOWN
NEWÂ INÂ TOWN2. line: holding shift while entering the whole line
3. line: repeatedly typing shift-space
4. line: same as 2.
5. line: using Ctrl-Shift-Space
The same file with cat test.txt in terminal:
Code: Select all
NEW IN TOWN
NEW IN TOWN
NEW IN TOWN
NEW IN TOWNCode: Select all
KeyPress event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32029260, (524,-60), root:(583,38),
state 0x0, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031172, (524,-60), root:(583,38),
state 0x1, keycode 65 (keysym 0xa0, nobreakspace), same_screen YES,
XLookupString gives 2 bytes: (c2 a0) " "
XmbLookupString gives 2 bytes: (c2 a0) " "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031308, (524,-60), root:(583,38),
state 0x1, keycode 65 (keysym 0xa0, nobreakspace), same_screen YES,
XLookupString gives 2 bytes: (c2 a0) " "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x2000001,
root 0x1a7, subw 0x0, time 32031636, (524,-60), root:(583,38),
state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
