Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[READY] Force MSVC to treat source files as UTF-8 encoded #1015

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

micbou
Copy link
Collaborator

@micbou micbou commented Apr 26, 2018

Compilation fails with a lot of these errors:

error C3688: invalid literal suffix '唷'; literal operator or literal operator template 'operator ""唷' not found

when the system local is Chinese on Windows. This is fixed by forcing MSVC to use UTF-8.


This change is Reviewable

@codecov-io
Copy link

codecov-io commented Apr 26, 2018

Codecov Report

Merging #1015 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1015      +/-   ##
==========================================
+ Coverage   97.04%   97.08%   +0.04%     
==========================================
  Files          88       88              
  Lines        6909     6904       -5     
==========================================
- Hits         6705     6703       -2     
+ Misses        204      201       -3

@bstaletic
Copy link
Collaborator

:lgtm:


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@puremourning
Copy link
Member

:lgtm: nice

@zzbot r+


Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@zzbot
Copy link
Contributor

zzbot commented Apr 26, 2018

📌 Commit 4ddf4cf has been approved by puremourning

@zzbot
Copy link
Contributor

zzbot commented Apr 26, 2018

⌛ Testing commit 4ddf4cf with merge 1142e0c...

zzbot added a commit that referenced this pull request Apr 26, 2018
[READY] Force MSVC to treat source files as UTF-8 encoded

Compilation fails with a lot of these errors:
```
error C3688: invalid literal suffix '唷'; literal operator or literal operator template 'operator ""唷' not found
```
when the system local is Chinese on Windows. This is fixed by forcing MSVC to use UTF-8.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/1015)
<!-- Reviewable:end -->
@zzbot
Copy link
Contributor

zzbot commented Apr 26, 2018

💔 Test failed - status-travis

@micbou
Copy link
Collaborator Author

micbou commented Apr 27, 2018

@zzbot retry


Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@zzbot
Copy link
Contributor

zzbot commented Apr 27, 2018

⌛ Testing commit 4ddf4cf with merge d328184...

zzbot added a commit that referenced this pull request Apr 27, 2018
[READY] Force MSVC to treat source files as UTF-8 encoded

Compilation fails with a lot of these errors:
```
error C3688: invalid literal suffix '唷'; literal operator or literal operator template 'operator ""唷' not found
```
when the system local is Chinese on Windows. This is fixed by forcing MSVC to use UTF-8.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/1015)
<!-- Reviewable:end -->
@zzbot
Copy link
Contributor

zzbot commented Apr 27, 2018

💔 Test failed - status-travis

@zzbot
Copy link
Contributor

zzbot commented Apr 27, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: puremourning
Pushing d328184 to master...

@zzbot zzbot merged commit 4ddf4cf into ycm-core:master Apr 27, 2018
@micbou micbou deleted the msvc-utf8 branch April 27, 2018 09:00
zzbot added a commit to ycm-core/YouCompleteMe that referenced this pull request May 2, 2018
[READY] Update ycmd

Include the following changes:

 - PR ycm-core/ycmd#919: cache include paths;
 - PR ycm-core/ycmd#1013: increase Python 2 requirement to 2.7.1;
 - PR ycm-core/ycmd#1015: force MSVC to treat source files as UTF-8 encoded;
 - PR ycm-core/ycmd#1017: bundle and compile the regex module;
 - PR ycm-core/ycmd#1020: use `sysconfig` instead of `distutils.sysconfig` in build script.

Fixes #3001.
Fixes #3007.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3010)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants