≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2154

Bug #2154: ArgumentError: invalid byte sequence in UTF-8

Kind bug
Product Command-T
When Created 2014-02-11T09:33:43Z, updated 2014-09-20T01:08:59Z
Status closed
Reporter Marius Gedminas
Tags no tags

Description

When I press \t in my home directory, I see this:

GoToFile [-]                                                                                                                          [0:0]    [buf 2]
>>  
Error detected while processing function <SNR>34_CommandTShowFileFinder:                                                                    
line    2:
ArgumentError: invalid byte sequence in UTF-8
Press ENTER or type command to continue

I think this may mean that there's a file somewhere under ~ with a non-UTF-8 filename. I've no idea what it might be.

Could command-t display it by showing <XX>, or U+FFFD REPLACEMENT CHARACTER, or a question mark? Instead of emitting that error, I mean.

Comments

  1. Marius Gedminas 2014-02-11T09:34:16Z

    Note that this breaks command-t completely: the choice list is empty, and if I press a key like <Down>, I get a new error:

    Error detected while processing function CommandTSelectNext: line 1: NoMethodError: undefined method length' for nil:NilClass

  2. Greg Hurrell 2014-02-11T11:27:00Z

    Out of interest, which version of Ruby us Vim linked against?

    You can check with:

    :ruby puts RUBY_VERSION
  3. anonymous 2014-06-15T04:41:12Z

    I met this error too. I guess it's a encoding problem cause I have a Japanese character in my path name.

  4. anonymous 2014-07-15T13:19:31Z

    I can confirm this problem. My Vim is linked against ruby 2.1.2

  5. Greg Hurrell 2014-07-15T13:58:00Z

    I can fix this if someone can give me a minimal repro case for it (could be a specific filename, or a zip with a bad filename in it etc).

  6. Greg Hurrell 2014-09-20T01:08:54Z

    I'm about to merge the proposed workaround from https://github.com/wincent/command-t/pull/113 so I'm going to mark this one as closed.

  7. Greg Hurrell 2014-09-20T01:08:59Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets