e0f2da0885
[READY] Fix LookupError exception when opening a file Fixes #2159. I think the issue is caused by `locale.getpreferredencoding()` returning an empty string on some configurations (especially on OS X with Python 2). This is [the value used by default when no encoding is specified](https://docs.python.org/2/library/io.html?highlight=open#io.open). The same error is raised if we do: ```python open( 'some_file', encoding = '' ) ``` For references, similar issues: https://github.com/Valloric/ycmd/issues/395, https://github.com/Valloric/ycmd/issues/419 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2160) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
testdata | ||
__init__.py | ||
base_test.py | ||
event_notification_test.py | ||
omni_completer_test.py | ||
paths_test.py | ||
postcomplete_tests.py | ||
syntax_parse_test.py | ||
vimsupport_test.py | ||
youcompleteme_test.py |