diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index f2087d81..cb7dcc5e 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -374,7 +374,9 @@ class YouCompleteMe( object ): def OnBufferUnload( self, deleted_buffer_file ): - SendEventNotificationAsync( 'BufferUnload', filepath = deleted_buffer_file ) + SendEventNotificationAsync( + 'BufferUnload', + filepath = utils.ToUnicode( deleted_buffer_file ) ) def OnBufferVisit( self ):