When dragging-and-dropping file(s) from Finder.app to an iTerm.app window, only some UTF-8 characters are replaced into NFC notation, others are not. Some special characters are not properly escaped.
For example,
a file named "x'&y" would be printed as "/path/to/x\'\&y" (NFC ok, escape ok)
a file named "#x$y" would be printed as "/path/to/#x$y" (NFC ok, escape fail, should be "/path/to/\#x\$y")
a file named "xäøy" would be printed as "/path/to/xä øy" (NFC fail, escape ok, should be "/path/to/xäøy")
A definition of NFC / NFD can be found at http://unicode.org/reports/tr15/
System details: iMac Intel running OSX 10.5.6
iTerm version: iTerm 0.9.6-20090415
Fix for this bug (using diff -uN <old> <new>)
Patch has a good chance of resolving
ID: 2256175 ("utf-8-decomposed support")
as well. Description is not 100% clear though.
Bug is resolved with attached patch. Can someone please checkin?
Thanks. I'll look into it.