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

Use UTF-8 instead of narrow #2891

Closed
wants to merge 1 commit into from
Closed

Conversation

est31
Copy link
Contributor

@est31 est31 commented Jul 7, 2015

Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
The only place this PR does change a chat message is to fix #2847, but only to give the fix faster to users, should this PR be merged first.

TODO:

  • also fix wgettext.h where we use narrow_to_wide_c.

@est31 est31 added Bug Issues that were confirmed to be a bug WIP labels Jul 7, 2015
@est31 est31 mentioned this pull request Jul 7, 2015
9 tasks
@est31
Copy link
Contributor Author

est31 commented Jul 7, 2015

I think I will "fix" that TODO by supplying a "working" utf8_to_wide_c that uses copies, and then optimizing to spare the copies later. This commit should mostly stay a big s///g I think.

@est31
Copy link
Contributor Author

est31 commented Jul 7, 2015

Ah, narrow_to_wide_c itself isn't optimized either. I guess the base reason is something else then.

Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
@est31 est31 removed the WIP label Jul 7, 2015
@est31
Copy link
Contributor Author

est31 commented Jul 7, 2015

Done, ready for review.

@nerzhul
Copy link
Member

nerzhul commented Jul 7, 2015

seems good to me

@est31
Copy link
Contributor Author

est31 commented Jul 8, 2015

b0784ba

@est31 est31 closed this Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that were confirmed to be a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Font characters broken
2 participants