Menu

#36 UTF-8 and escaping incomplete when using drag-and-drop

open
None
5
2009-10-12
2009-04-16
tonkopf
No

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

Discussion

  • tonkopf

    tonkopf - 2009-05-08

    Fix for this bug (using diff -uN <old> <new>)

     
  • tonkopf

    tonkopf - 2009-05-15

    Patch has a good chance of resolving
    ID: 2256175 ("utf-8-decomposed support")
    as well. Description is not 100% clear though.

     
  • James Bunton

    James Bunton - 2009-09-28
    • milestone: 264109 --> 257198
    • priority: 5 --> 6
     
  • tonkopf

    tonkopf - 2009-10-02

    Bug is resolved with attached patch. Can someone please checkin?

     
  • tonkopf

    tonkopf - 2009-10-02
    • status: open --> pending-fixed
     
  • tonkopf

    tonkopf - 2009-10-02
    • milestone: 257198 --> 264109
    • status: pending-fixed --> open-fixed
     
  • James Bunton

    James Bunton - 2009-10-12
    • labels: 484350 -->
    • priority: 6 --> 5
    • milestone: 264109 -->
    • assigned_to: nobody --> delx
    • status: open-fixed --> open
     
  • James Bunton

    James Bunton - 2009-10-12

    Thanks. I'll look into it.

     

Log in to post a comment.