Skip to content

UnicodeDecodeError when dealing with non-ascii filenames #74

@ggreer

Description

@ggreer

Any file names with non-ascii characters in them will cause the plugin to crash.

Floobits Plugin Vim-py2 3.0.3 darwin py-2.7

Error handling room_info event.
Traceback (most recent call last):
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/common/protocols/floo_proto.py", line 113, in _handle
   self.emit('data', name, data)
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/common/event_emitter.py", line 20, in emit
   handler(*args, **kwargs)
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/common/handlers/base.py", line 43, in on_data
   return handler(data)
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/vim_handler.py", line 343, in _on_room_info
   super(VimHandler, self)._on_room_info(data)
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/common/utils.py", line 505, in wrap
   return _unwind_generator(f(*args, **kwargs))
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/common/utils.py", line 475, in _unwind_generator
   return maybe_func(*args)
 File "/Users/ggreer/floobits/vim-plugin/plugin/floo/vim_handler.py", line 164, in stomp_prompt
   to_upload_str = 'upload %s' % ', '.join(to_upload)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions