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 --> |
||
---|---|---|
.. | ||
client | ||
tests | ||
__init__.py | ||
base.py | ||
diagnostic_interface.py | ||
omni_completer.py | ||
paths.py | ||
setup.py | ||
syntax_parse.py | ||
test_utils.py | ||
unsafe_thread_pool_executor.py | ||
vimsupport.py | ||
youcompleteme.py |