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

Fixed conversion between utf-8 and utf-16 for Windows build #2301

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

thunder2
Copy link
Contributor

I need to use std::codecvt_utf8_utf16<wchar_t> instead of std::codecvt_utf8<wchar_t> for the conversion between utf-8 and utf-16 for Windows build.
Is there a flag or switch I need to set to make it work without this change?

I am using MinGW 8.1
gcc (x86_64-posix-seh-rev0, created by the MinGW-W64 project) 8.1.0

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.88%. Comparing base (bd601d5) to head (fecb2be).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2301      +/-   ##
==========================================
- Coverage   84.88%   84.88%   -0.01%     
==========================================
  Files         114      114              
  Lines       22785    22783       -2     
==========================================
- Hits        19341    19339       -2     
  Misses       3444     3444              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@csoler
Copy link

csoler commented Dec 19, 2024

This PR is needed for integrating librnp into our project (retroshare), otherwise it won't compile on windows.

@ni4 ni4 requested review from maxirmx, ni4 and desvxx December 23, 2024 13:24
Copy link
Contributor

@ni4 ni4 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ni4
Copy link
Contributor

ni4 commented Dec 23, 2024

...related issue: #2302

Copy link
Member

@maxirmx maxirmx left a comment

Choose a reason for hiding this comment

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

+1

@ni4
Copy link
Contributor

ni4 commented Dec 24, 2024

Merging with two approvals. Thanks all!

@ni4 ni4 merged commit ec78117 into rnpgp:main Dec 24, 2024
123 checks passed
@thunder2 thunder2 deleted the fix_utf16 branch December 24, 2024 14:10
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.

4 participants