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 plog::UTF8Converter instead of std::codecvt_utf8 #955

Conversation

SergiusTheBest
Copy link
Contributor

@SergiusTheBest SergiusTheBest commented Aug 26, 2023

Plog has a built-in UTF-8 conversion, so std::codecvt_utf8 is not required. This makes code simpler and gets rid of std::codecvt_utf8 deprecation warnings. Also it fixes using a more recent plog version (>= 1.1.10) that supports utf8everywhere mode. That mode is triggered by the /utf-8 switch in MSVC and is used by default in vcpkg.

Plog has a built-in UTF-8 conversion, so `std::codecvt_utf8` is not required. This makes code simpler and gets rid of `std::codecvt_utf8` deprecation warnings. Also it fixes using a more recent plog version (>= 1.1.10) that supports utf8everywhere mode. That mode is triggered by the `/utf-8` switch in MSVC.
@SergiusTheBest SergiusTheBest marked this pull request as ready for review August 26, 2023 06:31
Copy link
Owner

@paullouisageneau paullouisageneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very handy, thank you for making the change. And thank you for the plog library!

@paullouisageneau paullouisageneau merged commit a3b2fce into paullouisageneau:master Aug 26, 2023
21 of 22 checks passed
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.

2 participants