I'm in contact with the xterm maintainer (Thomas Dickey) since I observed that modern xterm (version 402 and current 403; see echo $XTERM_VERSION) has a problem with some double width characters on my end of the net, but not his. Maybe we can gather some statistics to get to the bottom of this.
In particular, among others, the trademark symbol is displayed as a double width character when it should be single width. You can try this with a shell that supports the \uXXXX format for Unicode codepoints (bash, zsh).
	
	
	
		
If I understand the code in wcwidth.c correctly, xterm is told to make TM a double width by its own unicode table, which differs from what libc's wcwidth returns (width = 1).
Please let me know what you see with either 402 or 403 (and if you have 401 still around, why not try it and see if the behavior is different). Thanks!
				
			In particular, among others, the trademark symbol is displayed as a double width character when it should be single width. You can try this with a shell that supports the \uXXXX format for Unicode codepoints (bash, zsh).
		sh:
	
	printf '<\u2122>\n'
<™ >    # What I see: with space
<™>     # What Thomas sees: no spaceIf I understand the code in wcwidth.c correctly, xterm is told to make TM a double width by its own unicode table, which differs from what libc's wcwidth returns (width = 1).
Please let me know what you see with either 402 or 403 (and if you have 401 still around, why not try it and see if the behavior is different). Thanks!
 
			     
 
		 
 
		 ).
 ). 
 
		 
 
		 
 
		 
 
		